跟踪委托
数据示例
{
"channel": "push.personal.track.order",
"data": {
"id": 987654321,
"symbol": "BTC_USDT",
"leverage": 20,
"side": 1,
"vol": 50,
"openType": 1,
"trend": 1,
"activePrice": 45000.0,
"markPrice": 44950.0,
"backType": 1,
"backValue": 0.5,
"triggerPrice": 44750.0,
"triggerType": 2,
"orderId": 123456789,
"errorCode": 0,
"state": 1,
"positionMode": 2,
"reduceOnly": false,
"createTime": 1760942212000,
"updateTime": 1760942212000
},
"ts": 1760942212000
}
channel = push.personal.track.order
响应参数:
| 参数名 | 类型 | 说明 |
|---|---|---|
| id | long | 主键 id |
| symbol | string | 合约名 |
| leverage | int | 杠杆倍数 |
| side | int | 订单方向(1 开多 2 平空 3 开空 4 平多) |
| vol | decimal | 委托数量 |
| openType | int | 持仓类型(1 逐仓 2 全仓) |
| trend | int | 参考价格(1 最新价 2 合理价 3 指数价) |
| activePrice | decimal | 激活价格 |
| markPrice | decimal | 对标价格(激活后的最高价或者最低价) |
| backType | int | 价格回调类型(1 回调百分比 2 回调跨度值) |
| backValue | decimal | 回调值 |
| triggerPrice | decimal | 触发价格(随对标价格更新而更新) |
| triggerType | int | 触发类型 |
| orderId | long | 触发成功后的委托单 id |
| errorCode | int | 详见枚举定义:errorCode |
| state | int | 当前跟踪委托单状态(0 未激活 1 已激活 2 执行成功 3 执行失败 4 已取消) |
| positionMode | int | 用户设置持仓类型 |
| reduceOnly | boolean | 只减仓 |
| createTime | long | 创建时间 |
| updateTime | long | 更新时间 |