Skip to content

Commit 0e9475e

Browse files
committed
fix test
1 parent 9dedddf commit 0e9475e

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

lazer/sdk/rust/protocol/src/jrpc.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,10 @@ mod tests {
278278
"type": "funding_rate",
279279
"price": 1234567890,
280280
"rate": 1234567891,
281-
"funding_rate_interval": 28800
281+
"funding_rate_interval": {
282+
"secs": 28800,
283+
"nanos": 0
284+
}
282285
}
283286
},
284287
"id": 1

lazer/sdk/rust/protocol/src/payload.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ pub struct AggregatedPriceFeedData {
5252
pub confidence: Option<Price>,
5353
pub funding_rate: Option<Rate>,
5454
pub funding_timestamp: Option<TimestampUs>,
55+
pub funding_rate_interval: Option<u64>,
5556
}
5657

5758
/// First bytes of a payload's encoding

0 commit comments

Comments
 (0)