pub struct TickerData {Show 17 fields
pub symbol: Option<String>,
pub last_price: Option<String>,
pub high_price_24h: Option<String>,
pub low_price_24h: Option<String>,
pub prev_price_24h: Option<String>,
pub price_24h_pcnt: Option<String>,
pub volume_24h: Option<String>,
pub turnover_24h: Option<String>,
pub open_interest: Option<String>,
pub open_interest_value: Option<String>,
pub index_price: Option<String>,
pub mark_price: Option<String>,
pub funding_rate: Option<String>,
pub next_funding_time: Option<String>,
pub bid1_price: Option<String>,
pub ask1_price: Option<String>,
pub category: Option<String>,
}Expand description
Ticker data for a single symbol (24hr stats).
Fields§
§symbol: Option<String>Symbol
last_price: Option<String>Last traded price
high_price_24h: Option<String>24hr high
low_price_24h: Option<String>24hr low
prev_price_24h: Option<String>Previous 24hr price (for % change calc)
price_24h_pcnt: Option<String>24hr price change %
volume_24h: Option<String>24hr volume
turnover_24h: Option<String>24hr turnover (USDT value)
open_interest: Option<String>Open interest (derivatives)
open_interest_value: Option<String>Open interest value
index_price: Option<String>Index price (derivatives)
mark_price: Option<String>Mark price (derivatives)
funding_rate: Option<String>Funding rate (derivatives)
next_funding_time: Option<String>Next funding timestamp
bid1_price: Option<String>Best bid price
ask1_price: Option<String>Best ask price
category: Option<String>Category: “spot”, “linear”, “inverse”, “option”
Trait Implementations§
Source§impl Clone for TickerData
impl Clone for TickerData
Source§fn clone(&self) -> TickerData
fn clone(&self) -> TickerData
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 TickerData
impl Debug for TickerData
Source§impl<'de> Deserialize<'de> for TickerData
impl<'de> Deserialize<'de> for TickerData
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 TickerData
impl RefUnwindSafe for TickerData
impl Send for TickerData
impl Sync for TickerData
impl Unpin for TickerData
impl UnsafeUnpin for TickerData
impl UnwindSafe for TickerData
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