Struct binance_client::WebSocketTradeEvent[][src]

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,
}

The trade event data, received via WebSocket.

Fields

event_type: String

The trade event type. Usually equal to trade.

event_time: i64

The trade event time in milliseconds since Unix epoch.

symbol: String

The trading symbol name.

trade_id: i64

The unique trade event ID.

price: Decimal

The trade event price.

quantity: Decimal

The trade event quantity.

buyer_order_id: i64

The order ID if the buying side.

seller_order_id: i64

The order ID if the selling side.

trade_time: i64

The trade time in milliseconds since Unix epoch.

is_market_maker: bool

If the buyer is the marker maker.

ignore: bool

Unknown value.

Trait Implementations

impl Clone for Trade[src]

impl Debug for Trade[src]

impl<'de> Deserialize<'de> for Trade[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

type Err = <U as TryFrom<T>>::Err

impl<T> Typeable for T where
    T: Any