pub struct TickerMessage {Show 19 fields
pub feed: String,
pub product_id: String,
pub time: Option<u64>,
pub bid: Option<Decimal>,
pub bid_size: Option<Decimal>,
pub ask: Option<Decimal>,
pub ask_size: Option<Decimal>,
pub last: Option<Decimal>,
pub last_size: Option<Decimal>,
pub volume: Option<Decimal>,
pub mark_price: Option<Decimal>,
pub open_interest: Option<Decimal>,
pub funding_rate: Option<Decimal>,
pub funding_rate_prediction: Option<Decimal>,
pub change: Option<Decimal>,
pub premium: Option<Decimal>,
pub index: Option<Decimal>,
pub post_only: Option<bool>,
pub suspended: Option<bool>,
}Expand description
Ticker message.
Fields§
§feed: StringFeed name.
product_id: StringProduct ID.
time: Option<u64>Timestamp in milliseconds.
bid: Option<Decimal>Best bid price.
bid_size: Option<Decimal>Best bid size.
ask: Option<Decimal>Best ask price.
ask_size: Option<Decimal>Best ask size.
last: Option<Decimal>Last trade price.
last_size: Option<Decimal>Last trade size.
volume: Option<Decimal>24h volume.
mark_price: Option<Decimal>Mark price.
open_interest: Option<Decimal>Open interest.
funding_rate: Option<Decimal>Funding rate.
funding_rate_prediction: Option<Decimal>Funding rate prediction.
change: Option<Decimal>Change in last 24h (percentage).
Premium.
index: Option<Decimal>Index price.
post_only: Option<bool>Post only flag.
suspended: Option<bool>Suspended flag.
Trait Implementations§
Source§impl Clone for TickerMessage
impl Clone for TickerMessage
Source§fn clone(&self) -> TickerMessage
fn clone(&self) -> TickerMessage
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 TickerMessage
impl Debug for TickerMessage
Source§impl<'de> Deserialize<'de> for TickerMessage
impl<'de> Deserialize<'de> for TickerMessage
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 TickerMessage
impl RefUnwindSafe for TickerMessage
impl Send for TickerMessage
impl Sync for TickerMessage
impl Unpin for TickerMessage
impl UnwindSafe for TickerMessage
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