#[non_exhaustive]pub struct Order {Show 53 fields
pub inst_type: String,
pub inst_id: String,
pub tgt_ccy: String,
pub ccy: String,
pub ord_id: String,
pub cl_ord_id: String,
pub tag: String,
pub px: NumberString,
pub px_usd: NumberString,
pub px_vol: NumberString,
pub px_type: String,
pub sz: NumberString,
pub pnl: NumberString,
pub ord_type: OrderType,
pub side: OrderSide,
pub pos_side: PositionSide,
pub td_mode: TradeMode,
pub acc_fill_sz: NumberString,
pub fill_px: NumberString,
pub trade_id: String,
pub fill_sz: NumberString,
pub fill_time: NumberString,
pub avg_px: NumberString,
pub state: OrderState,
pub stp_id: String,
pub stp_mode: String,
pub lever: NumberString,
pub attach_algo_cl_ord_id: String,
pub tp_trigger_px: NumberString,
pub tp_trigger_px_type: String,
pub tp_ord_px: NumberString,
pub sl_trigger_px: NumberString,
pub sl_trigger_px_type: String,
pub sl_ord_px: NumberString,
pub attach_algo_ords: Vec<OrderAttachAlgoOrder>,
pub linked_algo_ord: Option<OrderLinkedAlgoOrder>,
pub fee_ccy: String,
pub fee: NumberString,
pub rebate_ccy: String,
pub rebate: NumberString,
pub source: String,
pub category: String,
pub reduce_only: String,
pub is_tp_limit: String,
pub cancel_source: String,
pub cancel_source_reason: String,
pub quick_mgn_type: String,
pub algo_cl_ord_id: String,
pub algo_id: String,
pub u_time: NumberString,
pub c_time: NumberString,
pub trade_quote_ccy: String,
pub outcome: String,
}Expand description
Details of an existing order.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.inst_type: StringInstrument type.
inst_id: StringInstrument ID.
tgt_ccy: StringOrder quantity unit setting for spot market orders (tgtCcy).
ccy: StringMargin currency.
ord_id: StringOKX order ID.
cl_ord_id: StringClient-supplied order ID, if any.
tag: StringOrder tag.
px: NumberStringOrder price.
px_usd: NumberStringOrder price in USD (options).
px_vol: NumberStringImplied volatility of the order price (options).
px_type: StringPrice type (px/pxVol/pxUsd).
sz: NumberStringOrder size.
pnl: NumberStringProfit and loss.
ord_type: OrderTypeOrder type.
side: OrderSideOrder side.
pos_side: PositionSidePosition side.
td_mode: TradeModeTrade mode.
acc_fill_sz: NumberStringAccumulated filled size.
fill_px: NumberStringLast fill price.
trade_id: StringLast trade ID.
fill_sz: NumberStringLast filled size.
fill_time: NumberStringLast fill time (Unix milliseconds).
avg_px: NumberStringAverage fill price.
state: OrderStateOrder state.
stp_id: StringSelf-trade prevention ID.
stp_mode: StringSelf-trade prevention mode.
lever: NumberStringLeverage.
attach_algo_cl_ord_id: StringClient-supplied ID of the attached SL/TP order.
tp_trigger_px: NumberStringTake-profit trigger price.
tp_trigger_px_type: StringTake-profit trigger price type.
tp_ord_px: NumberStringTake-profit order price.
sl_trigger_px: NumberStringStop-loss trigger price.
sl_trigger_px_type: StringStop-loss trigger price type.
sl_ord_px: NumberStringStop-loss order price.
attach_algo_ords: Vec<OrderAttachAlgoOrder>Attached SL/TP algo orders.
linked_algo_ord: Option<OrderLinkedAlgoOrder>Linked algo order, if any.
fee_ccy: StringFee currency.
fee: NumberStringFee amount.
rebate_ccy: StringRebate currency.
rebate: NumberStringRebate amount.
source: StringOrder source.
category: StringOrder category.
reduce_only: StringWhether the order is reduce-only ("true"/"false").
is_tp_limit: StringWhether the take-profit order is a limit order.
cancel_source: StringCancellation source.
cancel_source_reason: StringCancellation source reason.
quick_mgn_type: StringQuick margin type.
algo_cl_ord_id: StringClient-supplied algo order ID.
algo_id: StringAlgo order ID.
u_time: NumberStringUpdate time (Unix milliseconds).
c_time: NumberStringCreation time (Unix milliseconds).
trade_quote_ccy: StringTrade quote currency.
outcome: StringOrder outcome.