pub struct TradeSnapshotMsg {Show 13 fields
pub time: Timestamp,
pub symbol: String,
pub side: Side,
pub size: Decimal,
pub price: Decimal,
pub tick_direction: TickDirection,
pub trade_id: String,
pub block_trade: bool,
pub rpi_trade: Option<bool>,
pub mark_price: Option<String>,
pub index_price: Option<String>,
pub mark_iv: Option<String>,
pub iv: Option<String>,
}Expand description
A public trade.
Fields§
§time: TimestampTrade time, milliseconds.
symbol: StringSymbol name.
side: SideTaker side.
size: DecimalTrade size.
price: DecimalTrade price.
tick_direction: TickDirectionDirection of the last price change.
trade_id: StringTrade id.
block_trade: boolWhether it is a block trade.
rpi_trade: Option<bool>Whether it is an RPI (retail price improvement) trade.
mark_price: Option<String>Mark price (options).
index_price: Option<String>Index price (options).
mark_iv: Option<String>Mark implied volatility (options).
iv: Option<String>Implied volatility of the trade (options).
Trait Implementations§
Source§impl Debug for TradeSnapshotMsg
impl Debug for TradeSnapshotMsg
Source§impl<'de> Deserialize<'de> for TradeSnapshotMsg
impl<'de> Deserialize<'de> for TradeSnapshotMsg
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 TradeSnapshotMsg
impl PartialEq for TradeSnapshotMsg
impl StructuralPartialEq for TradeSnapshotMsg
Auto Trait Implementations§
impl Freeze for TradeSnapshotMsg
impl RefUnwindSafe for TradeSnapshotMsg
impl Send for TradeSnapshotMsg
impl Sync for TradeSnapshotMsg
impl Unpin for TradeSnapshotMsg
impl UnsafeUnpin for TradeSnapshotMsg
impl UnwindSafe for TradeSnapshotMsg
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