Skip to main content

Get Current Positions

Description​

Query futures position list

HTTP Request​

  • GET /api/v3/position/list
  • Supported Products: linear
  • Rate Limit: 10 requests per second per UID

Request Parameters​

FieldTypeRequiredDescription
categorystringYesProduct type: linear
symbolstringNoTrading pair, in symbol value transmission scenario, data is returned even when position is empty, including specific leverage, position mode, and margin mode.
limitintegerNoStandardized pagination parameters (aligned with order request sequence number) - number of items per page (default 20, maximum 100)
cursorstringNoPagination token (pass empty on the first query)

Response Parameters​

FieldTypeDescription
categorystringlinear
symbolstringcontract/trading pair name (e.g., BTCUSDT, ETHUSDT)
sidestringposition direction: LONG = long, SHORT = short
isAvailablebooleanavailability status: true = normally held, false = frozen/liquidated
leveragestringLeverage multiplier.
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).
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
updatedTimeLongUpdate timestamp (in milliseconds, UTC+8, updated upon position status change)
positionBalancestringisolated margin balance
tpslModestringTP/SL Mode: FULL = Take-Profit and Stop-Loss mode, PARTIAL = Partial Take-Profit and Stop-Loss mode
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)
markPricestringmark price. Data may have latency. It is recommended to use market data from the market data interface
liquidationPricestringLiquidation price (the system will forcibly liquidate when this price is reached. Only effective for isolated margin).
entryPricestringEntry price
valuestringPosition value
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)
positionUplstringUnrealized profit and loss (UPL, floating profit/loss of open positions)
positionRplstringrealized PnL for position (RPL, profit/loss confirmed upon closing)
baseCoinstringBase asset (e.g. BTC, ETH, the underlying asset of the position)
positionModeintegerPosition mode: 0 = single position, 3 = both-side position

Request Example​

GET /api/v3/position/list?category=linear&symbol=BTCUSDT HTTP/1.1
Host: openapi.lbank.com
ex-api-key: <your_api_key>
ex-timestamp: <current_unix_timestamp_ns>
ex-nonce: <unique_random_hex>
ex-signature: <your_signature>
ex-client-type: API

Response Example​

HTTP/1.1 200 OK
Content-Type: application/json

{
"code": 200,
"message": "Success",
"data": {
"perpetualPositions": [
{
"category": "linear",
"symbol": "BTCUSDT",
"side": "LONG",
"isAvailable": true,
"leverage": "10",
"accountMode": "CROSS",
"qty": "0.1",
"positionStatus": "NORMAL",
"adlRankIndicator": 1,
"mmRate": "100",
"updatedTime": 1793160000000,
"positionBalance": "0",
"tpslMode": "FULL",
"tpTriggerBy": "",
"slTriggerBy": "",
"takeProfit": "0",
"stopLoss": "0",
"tpOrderNum": "0",
"slOrderNum": "0",
"markPrice": "66000",
"liquidationPrice": "60000",
"entryPrice": "65000",
"value": "6600",
"reduceOnly": false,
"positionIm": "660",
"positionMm": "66",
"positionUpl": "100",
"positionRpl": "0",
"baseCoin": "BTC",
"positionMode": 3
}
],
"sumCount": 1,
"cursor": ""
},
"extras": null
}