Current Orders
Order updates are pushed while the order is in a live state (NEW or PARTIALLY_FILLED). Spot uses spotTradingOrders and futures uses futureTradingOrders.
Push Fields
| Field | Type | Description |
|---|---|---|
category | string | spot / linear |
orderId | string | Unique order ID. |
orderStatus | string | Order status: NEW = new, PARTIALLY_FILLED = partially executed, FILLED = fully executed, CANCELED = canceled, REJECTED = rejected |
side | string | Trading direction: BUY = buy, SELL = sell |
symbol | string | Trading pair name |
orderType | string | Order type: LIMIT = limit order, MARKET = market order, STOP_LIMIT = stop-loss limit order, TAKE_PROFIT_LIMIT = take-profit limit order |
stopOrderType | string | Stop loss order type: STOP_LOSS = stop loss order, TAKE_PROFIT = take profit order, OCO = one-cancels-the-other order, TRAILING_STOP = trailing stop loss order. |
price | string | Order price (string format to avoid floating-point precision loss) |
orderQty | string | Order quantity (precision matches the trading pair, e.g., 0.0001 BTC for BTC-USDT) |
timeInForce | string | Order validity: GTC = always valid, IOC = immediately execute and cancel remaining, FOK = all execute or cancel, GTX = place order only, no execution. |
orderLinkId | string | Associated order ID (customized by user to link parent and child orders) |
leavesQty | string | Remaining quantity (number of unfilled orders) |
averagePrice | string | Average execution price (total traded value / total traded volume) |
orderPnl | string | order profit and loss (only valid for closing orders. Positive indicates profit, negative indicates loss) |
createdTime | Long | Creation timestamp (millisecond-level, UTC+8, e.g. 1710000000000 represents 2024-03-10 00:00:00) |
updatedTime | Long | timestamp update (millisecond-level, UTC+8, updated upon order status change) |
reduceOnly | boolean | reduce-only: true = only close position, false = can open/close |
tpTriggerBy | string | Take-profit trigger sources: MARK_PRICE = mark price, INDEX_PRICE = index price, LAST_PRICE = last trade price |
slTriggerBy | string | Stop-loss trigger source: MARK_PRICE = mark price, INDEX_PRICE = index price, LAST_PRICE = latest trade price |
takeProfit | string | take-profit price (triggered when this price is reached) |
stopLoss | string | stop-loss price (triggered when this price is reached) |
triggerPrice | string | trigger price (the benchmark price for conditional order activation) |
tpslMode | string | TP/SL Mode: FULL = Take-Profit and Stop-Loss mode, PARTIAL = Partial Take-Profit and Stop-Loss mode |
tpOrderType | string | take-loss order type: LIMIT = limit order, MARKET = market order |
slOrderType | string | take-profit order type: LIMIT = limit order, MARKET = market order |
limitTakeProfit | string | Take-profit price (executed at limit price after take-profit trigger) |
limitStopLoss | string | Limit stop-loss price (the limit price executed after stop-loss trigger) |
orderValue | string | Order value (= order quantity × order price, including unfilled portions) |
executedAmount | string | Trade amount (= cumulative traded quantity × average trade price) |
leavesAmount | string | Remaining trade amount (= remaining quantity × order price) |
quoteTokenName | string | Quote asset name, for example USDT or USD. |
amount | string | order amount (RMB/valuation currency amount for spot orders) |
positionIdx | integer | Position index (unique internal position identifier) |
businessOrderType | string | One of LIMIT, MARKET, PLAN_LIMIT, PLAN_MARKET, OCO, PROFITLOSS_LIMIT, or PROFITLOSS_MARKET. |
parentOrderId | string | Take-profit and stop-loss order parent order ID |
tpTriggerPrice | string | Take-profit trigger price. |
slTriggerPrice | string | Stop-loss trigger price. |
leverage | string | Leverage (stored as 100x multiplier. E.g., 1000 represents 10x leverage, restored by dividing by 100 upon reading) |
accountMode | string | account mode: CROSS = cross margin, ISOLATED = isolated margin |
orderAvgPrice | string | Average execution price of order: Sum(Trade Size × Trade Price) / Sum(Trade Size) |
triggerTime | string | Condition order trigger time (milliseconds) |
tpSlExecMode | integer | Only for futures. Price guarantee: 0 = no, 1 = yes |
cumExecQty | string | order executed quantity |