pub struct PremiumIndex {
pub estimated_funding_rate: Decimal,
pub index_price: Decimal,
pub interest_rate: Decimal,
pub last_funding_rate: Decimal,
pub mark_price: Decimal,
pub next_funding_time: i64,
pub symbol: String,
pub time: i64,
}Expand description
real-time mark price, index price, and estimated funding rate per symbol
JSON schema
{
"description": "real-time mark price, index price, and estimated funding rate per symbol",
"type": "object",
"required": [
"estimatedFundingRate",
"indexPrice",
"interestRate",
"lastFundingRate",
"markPrice",
"nextFundingTime",
"symbol",
"time"
],
"properties": {
"estimatedFundingRate": {
"description": "pre-computed estimated 1h funding rate (8h rate ÷ 8) from current premium index accumulator",
"type": "string",
"format": "decimal"
},
"indexPrice": {
"type": "string",
"format": "decimal"
},
"interestRate": {
"type": "string",
"format": "decimal"
},
"lastFundingRate": {
"description": "funding rate for 8h period",
"type": "string",
"format": "decimal"
},
"markPrice": {
"type": "string",
"format": "decimal"
},
"nextFundingTime": {
"description": "unix timestamp ms of next hourly funding settlement",
"type": "integer",
"format": "int64"
},
"symbol": {
"type": "string"
},
"time": {
"description": "server time unix ms",
"type": "integer",
"format": "int64"
}
}
}Fields§
§estimated_funding_rate: Decimalpre-computed estimated 1h funding rate (8h rate ÷ 8) from current premium index accumulator
index_price: Decimal§interest_rate: Decimal§last_funding_rate: Decimalfunding rate for 8h period
mark_price: Decimal§next_funding_time: i64unix timestamp ms of next hourly funding settlement
symbol: String§time: i64server time unix ms
Trait Implementations§
Source§impl Clone for PremiumIndex
impl Clone for PremiumIndex
Source§fn clone(&self) -> PremiumIndex
fn clone(&self) -> PremiumIndex
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PremiumIndex
impl Debug for PremiumIndex
Source§impl<'de> Deserialize<'de> for PremiumIndex
impl<'de> Deserialize<'de> for PremiumIndex
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for PremiumIndex
impl RefUnwindSafe for PremiumIndex
impl Send for PremiumIndex
impl Sync for PremiumIndex
impl Unpin for PremiumIndex
impl UnsafeUnpin for PremiumIndex
impl UnwindSafe for PremiumIndex
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more