pub struct OrderRecord {Show 20 fields
pub order_id: String,
pub order_link_id: String,
pub symbol: String,
pub price: Option<Decimal>,
pub qty: Decimal,
pub side: String,
pub order_status: String,
pub order_type: String,
pub stop_order_type: String,
pub cum_exec_qty: Decimal,
pub leaves_qty: Option<Decimal>,
pub avg_price: Option<Decimal>,
pub trigger_price: Option<Decimal>,
pub trigger_direction: i64,
pub time_in_force: String,
pub cancel_type: String,
pub reject_reason: String,
pub category: String,
pub created_time: i64,
pub updated_time: i64,
}Expand description
An order as the exchange lists it (/v5/order/realtime, /v5/order/history, and the order stream).
Fields§
§order_id: StringThe number of the order.
order_link_id: StringThe client id (orderLinkId), empty when none was given.
symbol: StringThe symbol.
price: Option<Decimal>The limit price, None for a market order.
qty: DecimalThe quantity.
side: StringBuy or Sell.
order_status: StringNew, PartiallyFilled, Untriggered, Rejected, Filled, Cancelled, Triggered, Deactivated, …
order_type: StringMarket or Limit.
stop_order_type: StringStop, TakeProfit, StopLoss, … or UNKNOWN/empty for a plain order.
cum_exec_qty: DecimalThe quantity executed so far.
leaves_qty: Option<Decimal>The quantity still working.
avg_price: Option<Decimal>The average price of the executed part.
trigger_price: Option<Decimal>The trigger price of a conditional order, None (or zero) for a plain one.
trigger_direction: i641 the order triggers when the price rises to the trigger price, 2 when it falls, 0 not conditional.
time_in_force: StringGTC, IOC, FOK, PostOnly.
cancel_type: StringWhy the exchange cancelled it (CancelByUser, …).
reject_reason: StringWhy the exchange rejected it (EC_NoError when it did not).
category: StringThe product category (the streams carry it, the lists put it on the page).
created_time: i64When the order was made, milliseconds.
updated_time: i64When the order last changed, milliseconds.
Trait Implementations§
Source§impl Clone for OrderRecord
impl Clone for OrderRecord
Source§fn clone(&self) -> OrderRecord
fn clone(&self) -> OrderRecord
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more