pub struct Ticker {Show 23 fields
pub instrument_name: String,
pub timestamp: i64,
pub best_bid_price: Option<f64>,
pub best_bid_amount: Option<f64>,
pub best_ask_price: Option<f64>,
pub best_ask_amount: Option<f64>,
pub last_price: Option<f64>,
pub mark_price: Option<f64>,
pub index_price: Option<f64>,
pub open_interest: f64,
pub volume_24h: f64,
pub volume_usd_24h: f64,
pub price_change_24h: f64,
pub high_24h: Option<f64>,
pub low_24h: Option<f64>,
pub underlying_price: Option<f64>,
pub underlying_index: Option<String>,
pub instrument_kind: Option<InstrumentKind>,
pub current_funding: Option<f64>,
pub funding_8h: Option<f64>,
pub iv: Option<f64>,
pub greeks: Option<Greeks>,
pub interest_rate: Option<f64>,
}Expand description
Ticker information
Fields§
§instrument_name: StringInstrument name
timestamp: i64Timestamp of the ticker data
best_bid_price: Option<f64>Best bid price
best_bid_amount: Option<f64>Best bid amount
best_ask_price: Option<f64>Best ask price
best_ask_amount: Option<f64>Best ask amount
last_price: Option<f64>Last trade price
mark_price: Option<f64>Mark price
index_price: Option<f64>Index price
open_interest: f64Open interest
volume_24h: f6424h volume
volume_usd_24h: f6424h volume in USD
price_change_24h: f6424h price change
high_24h: Option<f64>High price in 24h
low_24h: Option<f64>Low price in 24h
underlying_price: Option<f64>Underlying price (for derivatives)
underlying_index: Option<String>Underlying index
instrument_kind: Option<InstrumentKind>Instrument kind
current_funding: Option<f64>Current funding rate (for perpetuals)
funding_8h: Option<f64>Funding 8h rate
iv: Option<f64>Implied volatility (for options)
greeks: Option<Greeks>Greeks (for options)
interest_rate: Option<f64>Interest rate
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Ticker
impl<'de> Deserialize<'de> for Ticker
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 Ticker
impl RefUnwindSafe for Ticker
impl Send for Ticker
impl Sync for Ticker
impl Unpin for Ticker
impl UnwindSafe for Ticker
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