#[non_exhaustive]pub struct Ticker {Show 14 fields
pub inst_type: InstType,
pub inst_id: String,
pub last: NumberString,
pub last_sz: NumberString,
pub ask_px: NumberString,
pub ask_sz: NumberString,
pub bid_px: NumberString,
pub bid_sz: NumberString,
pub open24h: NumberString,
pub high24h: NumberString,
pub low24h: NumberString,
pub vol24h: NumberString,
pub vol_ccy24h: NumberString,
pub ts: NumberString,
}Expand description
The latest ticker snapshot for an instrument.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.inst_type: InstTypeInstrument type.
inst_id: StringInstrument ID, e.g. BTC-USDT.
last: NumberStringLast traded price.
last_sz: NumberStringLast traded size.
ask_px: NumberStringBest ask price.
ask_sz: NumberStringBest ask size.
bid_px: NumberStringBest bid price.
bid_sz: NumberStringBest bid size.
open24h: NumberStringOpen price over the last 24 hours.
high24h: NumberStringHighest price over the last 24 hours.
low24h: NumberStringLowest price over the last 24 hours.
vol24h: NumberStringTrading volume (base ccy) over the last 24 hours.
vol_ccy24h: NumberStringTrading volume (quote ccy) over the last 24 hours.
ts: NumberStringTicker timestamp (Unix milliseconds).
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 UnsafeUnpin 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