pub struct ExecutionReportEvent {Show 29 fields
pub event_time: Timestamp,
pub symbol: String,
pub client_order_id: String,
pub side: OrderSide,
pub order_type: OrderType,
pub time_in_force: TimeInForce,
pub orig_qty: Decimal,
pub price: Decimal,
pub stop_price: Decimal,
pub iceberg_qty: Decimal,
pub orig_client_order_id: String,
pub execution_type: String,
pub order_status: OrderStatus,
pub reject_reason: String,
pub order_id: i64,
pub last_executed_qty: Decimal,
pub cumulative_filled_qty: Decimal,
pub last_executed_price: Decimal,
pub commission: Decimal,
pub commission_asset: Option<String>,
pub transaction_time: Timestamp,
pub trade_id: i64,
pub is_on_book: bool,
pub is_maker: bool,
pub order_creation_time: Timestamp,
pub cumulative_quote_qty: Decimal,
pub last_quote_qty: Decimal,
pub quote_order_qty: Decimal,
pub isolated_symbol: Option<String>,
}Expand description
Order lifecycle event: NEW, TRADE, CANCELED, REPLACED, REJECTED, EXPIRED, TRADE_PREVENTION.
One event is emitted for every state transition; consume the stream to reconcile order state without polling.
Fields§
§event_time: Timestamp§symbol: String§client_order_id: StringCaller-supplied client order id.
side: OrderSide§order_type: OrderType§time_in_force: TimeInForce§orig_qty: DecimalOrder quantity (base asset).
price: Decimal§stop_price: DecimalStop price (for STOP_LOSS / TAKE_PROFIT variants).
iceberg_qty: DecimalIceberg quantity.
orig_client_order_id: StringOriginal client order id (set on cancel / replace).
execution_type: StringCurrent execution type — NEW / CANCELED / REPLACED / REJECTED / TRADE / EXPIRED / TRADE_PREVENTION. Returned as a raw string to keep this resilient to new variants Binance may add.
order_status: OrderStatus§reject_reason: StringReject reason (or "NONE").
order_id: i64§last_executed_qty: DecimalQuantity executed in this trade (0 if no fill).
cumulative_filled_qty: DecimalCumulative filled quantity.
last_executed_price: DecimalPrice of this trade (0 if no fill).
commission: DecimalCommission for this fill.
commission_asset: Option<String>Commission asset — null if no fill.
transaction_time: Timestamp§trade_id: i64Trade id — -1 if no fill.
is_on_book: boolWhether the order is currently on the book.
is_maker: boolWhether this trade was the maker side.
order_creation_time: Timestamp§cumulative_quote_qty: DecimalCumulative quote-asset value transacted.
last_quote_qty: DecimalQuote-asset value of this fill.
quote_order_qty: DecimalQuote order qty (when the order was placed by quote amount).
isolated_symbol: Option<String>Margin-only: symbol of the isolated margin account this order belongs to. Absent (== None) for cross-margin orders.
Trait Implementations§
Source§impl Debug for ExecutionReportEvent
impl Debug for ExecutionReportEvent
Source§impl<'de> Deserialize<'de> for ExecutionReportEvent
impl<'de> Deserialize<'de> for ExecutionReportEvent
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>,
Source§impl PartialEq for ExecutionReportEvent
impl PartialEq for ExecutionReportEvent
Source§fn eq(&self, other: &ExecutionReportEvent) -> bool
fn eq(&self, other: &ExecutionReportEvent) -> bool
self and other values to be equal, and is used by ==.