計劃委託
subscribe:
{
"method": "SUBSCRIBE/UNSUBSCRIBE",
"params": [
"entrust"
],
"id": "{id}"
}
Response
{
"ch": "entrust",
"data": {
"entrustId": "556931318219666113", // 計劃委託id
"symbol": "btc_usdt", // 交易對
"entrustType": "PROFIT", // 委託類型
"orderSide": "BUY", // 買賣方向 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)
"delegateTriggerPriceType": "LATEST_PRICE", // 委託觸發價格類型
"triggerProfitPrice": "120000.0", // 止盈觸發價
"triggerStopPrice": "100000.0", // 止損觸發價
"profitDelegateOrderType": "MARKET", // 止盈委託訂單類型
"profitDelegateTimeInForce": "GTC", // 止盈委託有效方式
"profitDelegatePrice": "120000.0", // 止盈委託價
"stopDelegateOrderType": "MARKET", // 止損委託訂單類型
"stopDelegateTimeInForce": "GTC", // 止損委託有效方式
"stopDelegatePrice": "100000.0", // 止損委託價
"clientOrderId": "123456", // 自定義訂單id
"orderType": "LIMIT", // 訂單類型 [LIMIT;MARKET]
"sourceType": 0 // 來源類型
},
"ts": 1731231231000
}