Get Current Take-Profit/Stop-Loss Order List
Response Example
{
"success": true,
"code": 0,
"data": [
{
"id": 357859177,
"orderId": "720733527158642176",
"symbol": "BTC_USDT",
"positionId": "1027177055",
"lossTrend": 1,
"profitTrend": 1,
"stopLossPrice": 111325,
"takeProfitPrice": 113573.9,
"state": 3,
"triggerSide": 2,
"positionType": 1,
"vol": 2,
"realityVol": 2,
"placeOrderId": "720744238723187712",
"errorCode": 0,
"version": 2,
"isFinished": 1,
"priceProtect": 0,
"profitLossVolType": "SEPARATE",
"takeProfitVol": 2,
"stopLossVol": 2,
"createTime": 1757506663000,
"updateTime": 1757509217000,
"volType": 1,
"takeProfitReverse": 2,
"stopLossReverse": 2,
"closeTryTimes": 0,
"reverseTryTimes": 0,
"reverseErrorCode": 0,
"takeProfitType": 0,
"profit_LOSS_VOL_TYPE_SAME": "SAME",
"profit_LOSS_VOL_TYPE_DIFFERENT": "SEPARATE"
}
]
}
- GET
/api/v1/private/stoporder/open_orders
Required Permission: View Order Details
Request Parameters:
| Parameter | Type | Required | Description |
|---|---|---|---|
| symbol | string | false | Contract |
Response Parameters:
| Parameter | Type | Description |
|---|---|---|
| id | long | TP/SL order id |
| symbol | string | Contract |
| orderId | long | Limit order id; if placed by position, this value is 0 |
| positionId | long | Position id |
| lossTrend | int | Stop-loss type:1 latest price 2 fair price 3 index price |
| profitTrend | int | Take-profit type:1 latest price 2 fair price 3 index price |
| stopLossPrice | decimal | Stop-loss price |
| takeProfitPrice | decimal | Take-profit price |
| state | int | Status,1: untriggered,2: canceled,3: executed,4: invalidated,5: execution failed |
| triggerSide | int | Trigger direction,0: not triggered,1: take-profit,2: stop-loss |
| positionType | int | Position type,1: long,2: short |
| vol | decimal | Order quantity |
| realityVol | decimal | Actual placed quantity |
| placeOrderId | long | Order id after successful placement |
| errorCode | int | Error code,0: normal,others see error code details |
| isFinished | int | Whether order is in final state (for query),0: non-final,1: final |
| version | int | Version |
| priceProtect | int | Trigger protection:"1","0" |
| profitLossVolType | string | TP/SL quantity type (SAME: same quantity;SEPARATE:different quantities) |
| takeProfitVol | decimal | Take-profit quantity (when profitLossVolType == SEPARATE) |
| stopLossVol | decimal | Stop-loss quantity (when profitLossVolType == SEPARATE) |
| createTime | long | Created time |
| updateTime | long | Updated time |
| volType | int | Quantity type 1、partial TP/SL 2、position TP/SL |
| takeProfitReverse | int | Take-profit reverse: 1 yes 2 no |
| stopLossReverse | int | Stop-loss reverse: 1 yes 2 no |
| takeProfitType | int | Take-profit type 0 - market TP 1 - limit TP |
| takeProfitOrderPrice | decimal | Limit TP order price |
| stopLossType | long | Stop-loss type 0 - market SL 1 - limit SL |
| stopLossOrderPrice | decimal | Limit SL order price |