pub struct Order<'a> {Show 35 fields
pub category: &'a str,
pub order_id: &'a str,
pub order_link_id: &'a str,
pub is_leverage: &'a str,
pub block_trade_id: &'a str,
pub symbol: &'a str,
pub price: &'a str,
pub qty: &'a str,
pub side: &'a str,
pub position_idx: u8,
pub order_status: &'a str,
pub cancel_type: &'a str,
pub reject_reason: &'a str,
pub avg_price: &'a str,
pub leaves_qty: &'a str,
pub leaves_value: &'a str,
pub cum_exec_qty: &'a str,
pub cum_exec_value: &'a str,
pub cum_exec_fee: &'a str,
pub time_in_force: &'a str,
pub order_type: &'a str,
pub stop_order_type: &'a str,
pub order_iv: &'a str,
pub trigger_price: &'a str,
pub take_profit: &'a str,
pub stop_loss: &'a str,
pub tp_trigger_by: &'a str,
pub sl_trigger_by: &'a str,
pub trigger_direction: u8,
pub trigger_by: &'a str,
pub last_price_on_created: &'a str,
pub reduce_only: bool,
pub close_on_trigger: bool,
pub created_time: &'a str,
pub updated_time: &'a str,
}Expand description
The order data.
Fields§
§category: &'a strProduct type.
- Unified account:
spot,linear,option. - Normal account:
linear,inverse.
order_id: &'a strOrder ID.
order_link_id: &'a strUser customised order ID.
is_leverage: &'a strWhether to borrow. spot returns this field only. 0 (default): false, 1: true.
block_trade_id: &'a strBlock trade ID.
symbol: &'a strSymbol name.
price: &'a strOrder price.
qty: &'a strOrder qty.
side: &'a strSide. Buy, Sell.
position_idx: u8Position index. Used to identify positions in different position modes.
order_status: &'a strOrder status.
cancel_type: &'a strCancel type.
reject_reason: &'a strReject reason.
avg_price: &'a strAverage filled price. If unfilled, it is “”.
leaves_qty: &'a strThe remaining qty not executed.
leaves_value: &'a strThe remaining value not executed.
cum_exec_qty: &'a strCumulative executed order qty.
cum_exec_value: &'a strCumulative executed order value.
cum_exec_fee: &'a strCumulative executed trading fee.
time_in_force: &'a strTime in force.
order_type: &'a strOrder type. Market, Limit.
stop_order_type: &'a strStop order type.
order_iv: &'a strImplied volatility.
trigger_price: &'a strTrigger price. If stopOrderType=TrailingStop, it is activate price. Otherwise, it is trigger price.
take_profit: &'a strTake profit price.
stop_loss: &'a strStop loss price.
tp_trigger_by: &'a strThe price type to trigger take profit.
sl_trigger_by: &'a strThe price type to trigger stop loss.
trigger_direction: u8Trigger direction. 1: rise, 2: fall.
trigger_by: &'a strThe price type of trigger price.
last_price_on_created: &'a strLast price when place the order. For linear only.
reduce_only: boolReduce only. true means reduce position size.
close_on_trigger: boolClose on trigger.
created_time: &'a strOrder created timestamp (ms).
updated_time: &'a strOrder updated timestamp (ms).