Struct crypto_message::compact::TickerMsg
source · pub struct TickerMsg {Show 18 fields
pub exchange: Exchange,
pub market_type: MarketType,
pub symbol: u64,
pub msg_type: MessageType,
pub timestamp: i64,
pub open: f64,
pub high: f64,
pub low: f64,
pub close: f64,
pub volume: f64,
pub quote_volume: f64,
pub last_quantity: Option<f64>,
pub best_bid_price: Option<f64>,
pub best_bid_quantity: Option<f64>,
pub best_ask_price: Option<f64>,
pub best_ask_quantity: Option<f64>,
pub open_interest: Option<f64>,
pub open_interest_quote: Option<f64>,
}Expand description
24hr rolling window ticker
Fields§
§exchange: ExchangeThe exchange name, unique for each exchage
market_type: MarketTypeMarket type
symbol: u64Exchange-specific trading symbol or id, recognized by RESTful API
msg_type: MessageTypeMessage type
timestamp: i64Unix timestamp, in milliseconds
open: f64§high: f64§low: f64§close: f64§volume: f64§quote_volume: f64§last_quantity: Option<f64>§best_bid_price: Option<f64>§best_bid_quantity: Option<f64>§best_ask_price: Option<f64>§best_ask_quantity: Option<f64>§open_interest: Option<f64>availale in Futures and Swap markets
open_interest_quote: Option<f64>availale in Futures and Swap markets
Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for TickerMsg
impl<'de> Deserialize<'de> for TickerMsg
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
source§impl Ord for TickerMsg
impl Ord for TickerMsg
source§impl PartialEq for TickerMsg
impl PartialEq for TickerMsg
source§impl PartialOrd for TickerMsg
impl PartialOrd for TickerMsg
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self and other) and is used by the <=
operator. Read moreimpl Eq for TickerMsg
Auto Trait Implementations§
impl Freeze for TickerMsg
impl RefUnwindSafe for TickerMsg
impl Send for TickerMsg
impl Sync for TickerMsg
impl Unpin for TickerMsg
impl UnwindSafe for TickerMsg
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