pub struct Ticker {
pub ts: OffsetDateTime,
pub last: Decimal,
pub size: Decimal,
pub buy: Option<bool>,
pub bid: Option<Decimal>,
pub bid_size: Option<Decimal>,
pub ask: Option<Decimal>,
pub ask_size: Option<Decimal>,
}Expand description
Ticker.
Fields§
§ts: OffsetDateTimeTimestamp.
last: DecimalLast traded price.
size: DecimalLast traded size.
buy: Option<bool>Last traded side.
bid: Option<Decimal>Current best bid.
bid_size: Option<Decimal>The size of current best bid.
ask: Option<Decimal>Current best ask.
ask_size: Option<Decimal>The size of current best ask.
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
impl Copy for Ticker
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