跳至主要内容

反手計劃委託

subscribe:

{
"method": "SUBSCRIBE/UNSUBSCRIBE",
"params": [
"plan_reverse_entrust"
],
"id": "{id}"
}

該頻道推送反手(反方向)計劃委託。數據結構與 entrust 頻道一致,sourceType = 7(REVERSE_PLAN)。

Response

{
"ch": "plan_reverse_entrust",
"data": {
"entrustId": "556931318219666113", // 計劃委託id
"symbol": "btc_usdt", // 交易對
"entrustType": "PLAN", // 委託類型
"orderSide": "SELL", // 買賣方向 BUY, SELL
"positionSide": "LONG", // LONG, SHORT
"timeInForce": "GTC", // 有效方式
"price": "107500.0", // 下單價格
"origQty": "0.5", // 下單數量(標的幣)
"stopPrice": "108000.0", // 觸發價
"triggerPriceType": "LATEST_PRICE", // 觸發價格類型
"type": "ENTRUST", // 固定值 ENTRUST
"state": "NOT_TRIGGERED", // 委託狀態
"createdTime": 1731231231000, // 創建時間(ms)
"updatedTime": 1731231231000, // 更新時間(ms)
"clientOrderId": "123456", // 自定義訂單id
"orderType": "LIMIT", // 訂單類型 [LIMIT;MARKET]
"sourceType": 7 // 來源類型(7 = REVERSE_PLAN)
},
"ts": 1731231231000
}