pub struct TickerSnapshotMsg {Show 27 fields
pub symbol: String,
pub tick_direction: TickDirection,
pub last_price: Decimal,
pub pre_open_price: Option<Decimal>,
pub pre_qty: Option<Decimal>,
pub cur_pre_listing_phase: Option<String>,
pub prev_price24h: Decimal,
pub price24h_pcnt: Decimal,
pub high_price24h: Decimal,
pub low_price24h: Decimal,
pub prev_price1h: Decimal,
pub mark_price: Decimal,
pub index_price: Decimal,
pub open_interest: Decimal,
pub open_interest_value: Decimal,
pub turnover24h: Decimal,
pub volume24h: Decimal,
pub funding_rate: Decimal,
pub next_funding_time: Timestamp,
pub bid1_price: Decimal,
pub bid1_size: Decimal,
pub ask1_price: Decimal,
pub ask1_size: Decimal,
pub delivery_time: Option<Timestamp>,
pub basis_rate: Option<Decimal>,
pub delivery_fee_rate: Option<Decimal>,
pub predicted_delivery_price: Option<Decimal>,
}Expand description
Full ticker of a symbol.
Fields§
§symbol: StringSymbol name.
tick_direction: TickDirectionDirection of the last price change.
last_price: DecimalLast traded price.
pre_open_price: Option<Decimal>Estimated open price (pre-market contracts).
pre_qty: Option<Decimal>Estimated open quantity (pre-market contracts).
cur_pre_listing_phase: Option<String>Current phase (pre-market contracts).
prev_price24h: DecimalPrice 24 hours ago.
price24h_pcnt: DecimalPrice change over 24 hours, as a ratio (0.01 = 1%).
high_price24h: DecimalHighest price in the last 24 hours.
low_price24h: DecimalLowest price in the last 24 hours.
prev_price1h: DecimalPrice an hour ago.
mark_price: DecimalMark price.
index_price: DecimalIndex price.
open_interest: DecimalOpen interest size.
open_interest_value: DecimalOpen interest value.
turnover24h: DecimalTurnover over 24 hours.
volume24h: DecimalVolume over 24 hours.
funding_rate: DecimalFunding rate.
next_funding_time: TimestampNext funding time, milliseconds.
bid1_price: DecimalBest bid price.
bid1_size: DecimalBest bid size.
ask1_price: DecimalBest ask price.
ask1_size: DecimalBest ask size.
delivery_time: Option<Timestamp>Delivery time, milliseconds (futures).
basis_rate: Option<Decimal>Basis rate (futures).
delivery_fee_rate: Option<Decimal>Delivery fee rate (futures).
predicted_delivery_price: Option<Decimal>Predicted delivery price (futures).
Trait Implementations§
Source§impl Debug for TickerSnapshotMsg
impl Debug for TickerSnapshotMsg
Source§impl<'de> Deserialize<'de> for TickerSnapshotMsg
impl<'de> Deserialize<'de> for TickerSnapshotMsg
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 PartialEq for TickerSnapshotMsg
impl PartialEq for TickerSnapshotMsg
impl StructuralPartialEq for TickerSnapshotMsg
Auto Trait Implementations§
impl Freeze for TickerSnapshotMsg
impl RefUnwindSafe for TickerSnapshotMsg
impl Send for TickerSnapshotMsg
impl Sync for TickerSnapshotMsg
impl Unpin for TickerSnapshotMsg
impl UnsafeUnpin for TickerSnapshotMsg
impl UnwindSafe for TickerSnapshotMsg
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