计划委托订单
数据示例
{
"channel": "push.personal.plan.order",
"data": {
"id": 987654321,
"symbol": "BTC_USDT",
"leverage": 20,
"side": 1,
"triggerPrice": 46000.0,
"price": 45990.0,
"vol": 5,
"openType": 1,
"triggerType": 1,
"state": 1,
"executeCycle": 24,
"trend": 1,
"errorCode": 0,
"orderId": 0,
"orderType": 1,
"marketOrderLevel": 0,
"positionMode": 1,
"lossTrend": 1,
"profitTrend": 1,
"stopLossPrice": 44000.0,
"takeProfitPrice": 47000.0,
"reduceOnly": false,
"createTime": 1760942212000,
"updateTime": 1760942212000
},
"ts": 1760942212000
}
channel = push.personal.plan.order
响应参数:
| 参数名 | 类型 | 说明 |
|---|---|---|
| id | long | 订单 id |
| symbol | string | 合约名 |
| leverage | int | 杠杆倍数 |
| side | int | 订单方向 1 开多,2 平空,3 开空,4 平多 |
| triggerPrice | decimal | 触发价 |
| price | decimal | 执行价格 |
| vol | decimal | 下单数量 |
| openType | int | 开仓类型,1:逐仓,2:全仓 |
| triggerType | int | 触发类型,1:大于等于,2:小于等于 |
| state | int | 状态,1:未触发,2:已取消,3:已执行,4:已失效,5:执行失败 |
| executeCycle | int | 执行周期,单位:小时 |
| trend | int | 触发价格类型,1:最新价,2:合理价,3:指数价 |
| errorCode | int | 详见枚举定义:errorCode |
| orderId | long | 订单 id,执行成功时返回 |
| orderType | int | 订单类型,1:限价单,2:Post Only 只做 Maker,3:立即成交或立即取消,4:全部成交或者全部取消,5:市价单 |
| marketOrderLevel | int | 市价订单的自定义档位 |
| positionMode | int | 用户设置持仓类型 默认 0:历史订单无记录 2:单向 1:双向 |
| lossTrend | int | 止损参考价格类型 1 最新价 2 合理价 3 指数价 |
| profitTrend | int | 止盈参考价格类型 1 最新价 2 合理价 3 指数价 |
| stopLossPrice | decimal | 止损价 |
| takeProfitPrice | decimal | 止盈价 |
| reduceOnly | boolean | 只减仓 |
| createTime | long | 创建时间 |
| updateTime | long | 修改时间 |