Skip to main content

Current Positions

The futureTradingPositions topic pushes updates when a futures position’s quantity, profit and loss, or margin changes.

Push Fields​

FieldTypeDescription
categorystringspot / linear
symbolstringcontract/trading pair name (e.g., BTCUSDT, ETHUSDT)
sidestringposition direction: LONG = long, SHORT = short
isAvailablebooleanavailability status: true = normally held, false = frozen/liquidated
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
qtystringPosition size (e.g., 1.5 represents 1.5 BTC)
positionStatusstringPosition status: normal = normally held, inactive = unavailable (e.g., during liquidation).
bv2cstringLong value (stored amplified by 1e8. Divided by 1e8 when read to restore)
sv2cstringShort position value (stored amplified by 1e8. Divided by 1e8 when read to restore original value)
adlRankIndicatorintegerADL ranking identifier (auto-reduction ranking, 0-5 levels, level 5 is highest risk and prioritized for reduction)
mmRatestringMaintenance margin ratio (MMR), stored as 1e4 times (e.g., 100 represents 1%), restored by dividing by 1e4 upon reading
cumulativeRealisedPnlstringCumulative realized PnL (total historical PnL of the position, positive for profit, negative for loss)
updatedTimeLongUpdate timestamp (in milliseconds, UTC+8, updated upon position status change)
positionBalancestringIsolated margin balance (scaled by 1e8, valid only in isolated margin mode)
positionMarginstringPosition margin (stored as 1e8 times the value, equals initial margin + maintenance margin)
tpslModestringTP/SL Mode: FULL = Take-Profit and Stop-Loss mode, PARTIAL = Partial Take-Profit and Stop-Loss mode
triggerMmRatestringTrigger margin rate threshold (stored as 100x multiplier. E.g., 100 represents 1%, restored by dividing by 100 upon reading)
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 take-profit liquidation when reached)
stopLossstringStop-loss price (triggered stop-loss liquidation when reached)
tpOrderNumstringTake-profit order quantity (number of take-profit liquidation orders placed)
slOrderNumstringStop-loss order quantity (number of stop-loss liquidation orders placed)
tpFreeSizestringStop-loss available amount (maximum number of stop-loss orders that can be placed)
slFreeSizestringTake-profit available amount (maximum number of take-profit orders that can be placed)
markPricestringMark price (used for calculating unrealized PnL and liquidation price)
liquidationPricestringLiquidation price (forced liquidation when reached)
bustPricestringcircuit breaker price (the forced liquidation price under extreme market conditions, below the liquidation price)
entryPricestringEntry price (stored amplified by 1e8. Divided by 1e8 when read to restore original value)
valuestringPosition value (stored scaled by 1e8, = position size × mark price)
reduceOnlybooleanreduce-only: true = only close position, false = can open/close
positionImstringinitial margin for position (IM, margin frozen upon opening)
positionMmstringmaintenance margin for position (MM, minimum margin required to hold position)
positionImUsdstringinitial position margin (USD-denominated, for cross-currency uniform calculation)
positionMmUsdstringmaintenance margin of position (USD-denominated)
positionUplstringUnrealized profit and loss (UPL, floating profit/loss of open positions)
positionRplstringrealized PnL for position (RPL, profit/loss confirmed upon closing)
positionUplUsdstringunrealized profit and loss of position (USD-denominated)
positionRplUsdstringrealized profit and loss of position (USD-denominated)
baseCoinstringBase asset (e.g. BTC, ETH, the underlying asset of the position)
positionBalanceUsdstringPosition margin balance (in USD, only available in isolated margin mode)
lastPricestringLatest price (latest market execution price)
indexPricestringIndex price (average price across multiple exchanges to prevent price manipulation)
positionModeintegerPosition mode: 0 = single position, 3 = both-side position