TP/SL plan orders
Sample
{
"channel": "push.personal.stop.planorder",
"data": {
"id": 987654321,
"orderId": 123456789,
"symbol": "BTC_USDT",
"positionId": 456789123,
"lossTrend": 1,
"profitTrend": 2,
"stopLossPrice": 42000.0,
"takeProfitPrice": 48000.0,
"state": 1,
"triggerSide": 1,
"positionType": 1,
"vol": 10,
"takeProfitVol": 10,
"stopLossVol": 10,
"realityVol": 10,
"placeOrderId": 987654321,
"version": 1,
"isFinished": 0,
"profitLossVolType": "SAME",
"volType": 1,
"takeProfitReverse": 2,
"stopLossReverse": 2,
"closeTryTimes": 0,
"reverseTryTimes": 0,
"reverseErrorCode": 0,
"stopLossType": 1,
"stopLossOrderPrice": 41990.0,
"createTime": 1760942212000,
"updateTime": 1760942212000
},
"ts": 1760942212000
}
channel = push.personal.stop.planorder
Response fields:
| Field | Type | Description |
|---|---|---|
| id | long | Primary ID |
| orderId | long | Order ID |
| symbol | string | Contract |
| positionId | long | Position ID |
| lossTrend | int | SL reference type |
| profitTrend | int | TP reference type |
| stopLossPrice | decimal | SL price |
| takeProfitPrice | decimal | TP price |
| state | int | State |
| triggerSide | int | Trigger direction: 1 TP, 2 SL |
| positionType | int | Position type |
| vol | decimal | Quantity |
| takeProfitVol | decimal | TP quantity |
| stopLossVol | decimal | SL quantity |
| realityVol | decimal | Actual placed quantity |
| placeOrderId | long | Actual placed order ID |
| version | int | Version |
| isFinished | int | Completed |
| profitLossVolType | string | TP/SL qty type (SAME / SEPARATE) |
| volType | int | 1 staged TP/SL, 2 position TP/SL |
| takeProfitReverse | int | TP reverse: 1 yes, 2 no |
| stopLossReverse | int | SL reverse: 1 yes, 2 no |
| closeTryTimes | int | Close retry count |
| reverseTryTimes | int | Reverse retry count |
| reverseErrorCode | int | Reverse open error code (0 default) |
| stopLossType | int | 0 market SL, 1 limit SL |
| stopLossOrderPrice | decimal | Limit SL price |
| createTime | long | Create time |
| updateTime | long | Update time |