pub struct PremiumIndex {
pub info: Option<Value>,
pub symbol: String,
pub mark_price: f64,
pub index_price: f64,
pub estimated_settle_price: f64,
pub last_funding_rate: f64,
pub next_funding_time: i64,
pub time: i64,
}Expand description
Premium index information.
Contains comprehensive market data including mark price, index price, and funding rate information for futures contracts.
Fields§
§info: Option<Value>Raw API response data.
symbol: StringTrading pair symbol.
mark_price: f64Mark price used for profit/loss calculation.
index_price: f64Index price calculated from spot exchanges.
estimated_settle_price: f64Estimated settlement price.
last_funding_rate: f64Last applied funding rate.
next_funding_time: i64Next funding rate settlement time in milliseconds.
time: i64Current timestamp in milliseconds.
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 · 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 Default for PremiumIndex
impl Default for PremiumIndex
Source§fn default() -> PremiumIndex
fn default() -> PremiumIndex
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for PremiumIndex
impl<'de> Deserialize<'de> for PremiumIndex
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<PremiumIndex, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<PremiumIndex, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for PremiumIndex
impl Serialize for PremiumIndex
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. 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 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