跳到主要内容

计划委托订单

数据示例

{
"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

响应参数:

参数名类型说明
idlong订单 id
symbolstring合约名
leverageint杠杆倍数
sideint订单方向 1 开多,2 平空,3 开空,4 平多
triggerPricedecimal触发价
pricedecimal执行价格
voldecimal下单数量
openTypeint开仓类型,1:逐仓,2:全仓
triggerTypeint触发类型,1:大于等于,2:小于等于
stateint状态,1:未触发,2:已取消,3:已执行,4:已失效,5:执行失败
executeCycleint执行周期,单位:小时
trendint触发价格类型,1:最新价,2:合理价,3:指数价
errorCodeint详见枚举定义:errorCode
orderIdlong订单 id,执行成功时返回
orderTypeint订单类型,1:限价单,2:Post Only 只做 Maker,3:立即成交或立即取消,4:全部成交或者全部取消,5:市价单
marketOrderLevelint市价订单的自定义档位
positionModeint用户设置持仓类型 默认 0:历史订单无记录 2:单向 1:双向
lossTrendint止损参考价格类型 1 最新价 2 合理价 3 指数价
profitTrendint止盈参考价格类型 1 最新价 2 合理价 3 指数价
stopLossPricedecimal止损价
takeProfitPricedecimal止盈价
reduceOnlyboolean只减仓
createTimelong创建时间
updateTimelong修改时间