pub struct WebSocketTradeEvent {
pub event_type: String,
pub event_time: i64,
pub symbol: String,
pub trade_id: i64,
pub price: Decimal,
pub quantity: Decimal,
pub buyer_order_id: i64,
pub seller_order_id: i64,
pub trade_time: i64,
pub is_market_maker: bool,
pub ignore: bool,
}Expand description
The trade event data, received via WebSocket.
Fields§
§event_type: StringThe trade event type. Usually equal to trade.
event_time: i64The trade event time in milliseconds since Unix epoch.
symbol: StringThe trading symbol name.
trade_id: i64The unique trade event ID.
price: DecimalThe trade event price.
quantity: DecimalThe trade event quantity.
buyer_order_id: i64The order ID if the buying side.
seller_order_id: i64The order ID if the selling side.
trade_time: i64The trade time in milliseconds since Unix epoch.
is_market_maker: boolIf the buyer is the marker maker.
ignore: boolUnknown value.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Trade
impl<'de> Deserialize<'de> for Trade
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 Trade
impl RefUnwindSafe for Trade
impl Send for Trade
impl Sync for Trade
impl Unpin for Trade
impl UnwindSafe for Trade
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more