Skip to content

Get Pending Positions

Rate Limit: 10 req/sec/uid

Description

Get Pending Positions

HTTP Request

  • GET /api/v1/futures/position/get_pending_positions

Request Parameters

ParameterTypeRequiredDescription
symbolstringfalseTrading pair
positionIdstringfalseposition id

Request Example

bash
curl -X 'GET'  --location 'https://fapi.bitunix.com/api/v1/futures/position/get_pending_positions?symbol=BTCUSDT' \
   -H "api-key:*******" \
   -H "sign:*" \
   -H "time:1659076670000" \
   -H "language:en-US" \
   -H "Content-Type: application/json"

Response Parameters

ParameterTypeDescription
positionIdstringposition id
symbolstringTrading pair
qtystringposition amount
entryValuestringAvailable amount for positions
sidestringLONG SHORT
marginModestringISOLATION CROSS
positionModestringONE_WAY HEDGE
leverageint32leverage
feestringDeducted transaction fees: transaction fees deducted during the position
fundingstringtotal funding fee during the position
realizedPNLstringRealized PnL(exclude funding fee and transaction fee)
marginstringlocked asset of the position
unrealizedPNLstringUnrealized PnL
liqPricestringEstimated liquidation price
If the value <= 0, it means the position is at low risk and there is no liquidation price at this time
marginRatestringMargin ratio
avgOpenPricestringAverage open price
ctimeint64create timestamp
mtimeint64latest modify timestamp

Response Example

json
{"code":0,"data":[{"positionId":"12345678","symbol":"BTCUSDT","qty":"0.5","entryValue":"30000","side":"LONG","positionMode":"HEDGE","marginMode":"ISOLATION","leverage":100,"fee":"0.1","funding":"-0.2","realizedPNL":"102.9","margin":"300","unrealizedPNL":"1.5","liqPrice":"22209","marginRate":"0.01", "avgOpenPrice": "1.0","ctime":1691382137448,"mtime":1691382137448}],"msg":"Success"}