pub struct TradeMsg {
pub event_time: Timestamp,
pub symbol: String,
pub trade_id: i64,
pub price: Decimal,
pub qty: Decimal,
pub trade_time: Timestamp,
pub is_buyer_maker: bool,
}Expand description
The Trade Streams push raw trade information; each trade has a unique buyer and seller.
Fields§
§event_time: TimestampEvent time
symbol: StringSymbol
trade_id: i64Trade ID
price: DecimalPrice
qty: DecimalQuantity
trade_time: TimestampTrade time
is_buyer_maker: boolIs the buyer the market maker?
Trait Implementations§
Source§impl<'de> Deserialize<'de> for TradeMsg
impl<'de> Deserialize<'de> for TradeMsg
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 StructuralPartialEq for TradeMsg
Auto Trait Implementations§
impl Freeze for TradeMsg
impl RefUnwindSafe for TradeMsg
impl Send for TradeMsg
impl Sync for TradeMsg
impl Unpin for TradeMsg
impl UnsafeUnpin for TradeMsg
impl UnwindSafe for TradeMsg
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