止盈止损委托
数据示例
{
"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
响应参数:
| 参数名 | 类型 | 说明 |
|---|---|---|
| id | long | 主键 id |
| orderId | long | 订单 ID |
| symbol | string | 合约名 |
| positionId | long | 仓位 ID |
| lossTrend | int | 止损参考价格类型 |
| profitTrend | int | 止盈参考价格类型 |
| stopLossPrice | decimal | 止损价 |
| takeProfitPrice | decimal | 止盈价 |
| state | int | 状态 |
| triggerSide | int | 触发方向,1:止盈,2:止损 |
| positionType | int | 仓位类型 |
| vol | decimal | 委托数量 |
| takeProfitVol | decimal | 止盈数量 |
| stopLossVol | decimal | 止损数量 |
| realityVol | decimal | 实际下单数量 |
| placeOrderId | long | 实际下单订单 id |
| version | int | 版本号 |
| isFinished | int | 是否完成 |
| profitLossVolType | string | 止盈止损数量类型(SAME: 数量相同;SEPARATE:数量不同) |
| volType | int | 数量类型 1、分批止盈止损 2、仓位止盈止损 |
| takeProfitReverse | int | 止盈反手:1 是 2 否 |
| stopLossReverse | int | 止损反手:1 是 2 否 |
| closeTryTimes | int | 平仓重试次数 |
| reverseTryTimes | int | 反手重试次数 |
| reverseErrorCode | int | 反手开仓失败原因默认值 0 |
| stopLossType | int | 止损类型 0-市价止损 1-限价止损 |
| stopLossOrderPrice | decimal | 限价止损 委托价格 |
| createTime | long | 创建时间 |
| updateTime | long | 更新时间 |