Skip to main content

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​

FieldTypeDescription
categorystringspot / linear
orderIdstringUnique order ID.
orderStatusstringOrder status: NEW = new, PARTIALLY_FILLED = partially executed, FILLED = fully executed, CANCELED = canceled, REJECTED = rejected
sidestringTrading direction: BUY = buy, SELL = sell
symbolstringTrading pair name
orderTypestringOrder type: LIMIT = limit order, MARKET = market order, STOP_LIMIT = stop-loss limit order, TAKE_PROFIT_LIMIT = take-profit limit order
stopOrderTypestringStop 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.
pricestringOrder price (string format to avoid floating-point precision loss)
orderQtystringOrder quantity (precision matches the trading pair, e.g., 0.0001 BTC for BTC-USDT)
timeInForcestringOrder validity: GTC = always valid, IOC = immediately execute and cancel remaining, FOK = all execute or cancel, GTX = place order only, no execution.
orderLinkIdstringAssociated order ID (customized by user to link parent and child orders)
leavesQtystringRemaining quantity (number of unfilled orders)
averagePricestringAverage execution price (total traded value / total traded volume)
orderPnlstringorder profit and loss (only valid for closing orders. Positive indicates profit, negative indicates loss)
createdTimeLongCreation timestamp (millisecond-level, UTC+8, e.g. 1710000000000 represents 2024-03-10 00:00:00)
updatedTimeLongtimestamp update (millisecond-level, UTC+8, updated upon order status change)
reduceOnlybooleanreduce-only: true = only close position, false = can open/close
tpTriggerBystringTake-profit trigger sources: MARK_PRICE = mark price, INDEX_PRICE = index price, LAST_PRICE = last trade price
slTriggerBystringStop-loss trigger source: MARK_PRICE = mark price, INDEX_PRICE = index price, LAST_PRICE = latest trade price
takeProfitstringtake-profit price (triggered when this price is reached)
stopLossstringstop-loss price (triggered when this price is reached)
triggerPricestringtrigger price (the benchmark price for conditional order activation)
tpslModestringTP/SL Mode: FULL = Take-Profit and Stop-Loss mode, PARTIAL = Partial Take-Profit and Stop-Loss mode
tpOrderTypestringtake-loss order type: LIMIT = limit order, MARKET = market order
slOrderTypestringtake-profit order type: LIMIT = limit order, MARKET = market order
limitTakeProfitstringTake-profit price (executed at limit price after take-profit trigger)
limitStopLossstringLimit stop-loss price (the limit price executed after stop-loss trigger)
orderValuestringOrder value (= order quantity × order price, including unfilled portions)
executedAmountstringTrade amount (= cumulative traded quantity × average trade price)
leavesAmountstringRemaining trade amount (= remaining quantity × order price)
quoteTokenNamestringQuote asset name, for example USDT or USD.
amountstringorder amount (RMB/valuation currency amount for spot orders)
positionIdxintegerPosition index (unique internal position identifier)
businessOrderTypestringOne of LIMIT, MARKET, PLAN_LIMIT, PLAN_MARKET, OCO, PROFITLOSS_LIMIT, or PROFITLOSS_MARKET.
parentOrderIdstringTake-profit and stop-loss order parent order ID
tpTriggerPricestringTake-profit trigger price.
slTriggerPricestringStop-loss trigger price.
leveragestringLeverage (stored as 100x multiplier. E.g., 1000 represents 10x leverage, restored by dividing by 100 upon reading)
accountModestringaccount mode: CROSS = cross margin, ISOLATED = isolated margin
orderAvgPricestringAverage execution price of order: Sum(Trade Size × Trade Price) / Sum(Trade Size)
triggerTimestringCondition order trigger time (milliseconds)
tpSlExecModeintegerOnly for futures. Price guarantee: 0 = no, 1 = yes
cumExecQtystringorder executed quantity