Skip to content

Get Pending TP/SL Order

Rate Limit: 10 req/sec/uid

Description

Get Pending TP/SL Order

HTTP Request

  • GET /api/v1/futures/tpsl/get_pending_orders

Request Parameters

ParameterTypeRequiredDescription
symbolstringfalseTrading pair
positionIdstringfalseposition id
sideint32falseorder side
positionModeint32falseorder position mode
skipint64falseskip order count default: 0
limitint64falseNumber of queries: Maximum: 100, default: 10

Request Example

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

Response Parameters

ParameterTypeDescription
idstringorder id
positionIdstringposition id
symbolstringcoin pair
basestringbase
quotestringquote
tpPricestringTake-profit trigger price
tpStopTypestringTake-profit trigger type
LAST_PRICE
MARK_PRICE
slPricestringStop-loss trigger price
slStopTypestringStop-loss trigger type
LAST_PRICE
MARK_PRICE
tpOrderTypestringTake-profit order type
LIMIT
MARKET
Default is market.
tpOrderPricestringTake-profit order price
slOrderTypestringStop-loss order type
LIMIT
MARKET
Default is market.
slOrderPricestringStop-loss order price
tpQtystringTake-profit order quantity(base coin)
At least one of tpQty or slQty is required.
slQtystringStop-loss order quantity(base coin)
At least one of tpQty or slQty is required.

Response Example

json
{"code":0,"data":[{"id":"123","positionId":"12345678","symbol":"BTCUSDT","base":"BTC","quote":"USDT","tpPrice":"50000","tpStopType":"LAST_PRICE","slPrice":"70000","slStopType":"LAST_PRICE","tpOrderType":"LIMIT","tpOrderPrice":"50000","slOrderType":"LIMIT","slOrderPrice":"70000","tpQty":"0.01","slQty":"0.01"}],"msg":"Success"}