跳到主要内容

止盈止损委托

数据示例

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

响应参数:

参数名类型说明
idlong主键 id
orderIdlong订单 ID
symbolstring合约名
positionIdlong仓位 ID
lossTrendint止损参考价格类型
profitTrendint止盈参考价格类型
stopLossPricedecimal止损价
takeProfitPricedecimal止盈价
stateint状态
triggerSideint触发方向,1:止盈,2:止损
positionTypeint仓位类型
voldecimal委托数量
takeProfitVoldecimal止盈数量
stopLossVoldecimal止损数量
realityVoldecimal实际下单数量
placeOrderIdlong实际下单订单 id
versionint版本号
isFinishedint是否完成
profitLossVolTypestring止盈止损数量类型(SAME: 数量相同;SEPARATE:数量不同)
volTypeint数量类型 1、分批止盈止损 2、仓位止盈止损
takeProfitReverseint止盈反手:1 是 2 否
stopLossReverseint止损反手:1 是 2 否
closeTryTimesint平仓重试次数
reverseTryTimesint反手重试次数
reverseErrorCodeint反手开仓失败原因默认值 0
stopLossTypeint止损类型 0-市价止损 1-限价止损
stopLossOrderPricedecimal限价止损 委托价格
createTimelong创建时间
updateTimelong更新时间