pub struct TradeEvent {
pub exchange: Exchange,
pub symbol: Symbol,
pub timestamp: i64,
pub received_at: i64,
pub price: Decimal,
pub quantity: Decimal,
pub side: Side,
pub trade_id: String,
pub buyer_is_maker: Option<bool>,
}Expand description
Normalized trade event
Fields§
§exchange: ExchangeExchange that produced this trade
symbol: SymbolTrading pair symbol
timestamp: i64Trade execution timestamp (exchange time, Unix microseconds)
received_at: i64Reception timestamp (our system time, Unix microseconds)
price: DecimalExecution price
quantity: DecimalTrade quantity/size
side: SideTrade side from taker perspective
trade_id: StringExchange-specific trade ID
buyer_is_maker: Option<bool>Whether buyer was the market maker (if available)
Implementations§
Source§impl TradeEvent
impl TradeEvent
Trait Implementations§
Source§impl Clone for TradeEvent
impl Clone for TradeEvent
Source§fn clone(&self) -> TradeEvent
fn clone(&self) -> TradeEvent
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 TradeEvent
impl Debug for TradeEvent
Source§impl<'de> Deserialize<'de> for TradeEvent
impl<'de> Deserialize<'de> for TradeEvent
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 TradeEvent
impl RefUnwindSafe for TradeEvent
impl Send for TradeEvent
impl Sync for TradeEvent
impl Unpin for TradeEvent
impl UnsafeUnpin for TradeEvent
impl UnwindSafe for TradeEvent
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