止盈止損
subscribe:
{
"method": "SUBSCRIBE/UNSUBSCRIBE",
"params": [
"profit"
],
"id": "{id}"
}
Response
{
"ch": "profit",
"data": {
"accountId": 8654006125462,
"accountType": 0,
"profitId": "556931318219666113", // 止盈止損id
"symbol": "btc_usdt", // 交易對
"positionSide": "LONG", // LONG, SHORT
"origQty": "0.5", // 數量(標的幣)
"triggerPriceType": "LATEST_PRICE", // 觸發價格類型
"triggerProfitPrice": "120000.0", // 止盈觸發價
"triggerStopPrice": "100000.0", // 止損觸發價
"profitDelegateOrderType": "MARKET", // 止盈委託訂單類型
"profitDelegateTimeInForce": "GTC", // 止盈委託有效方式
"profitDelegatePrice": "120000.0", // 止盈委託價
"stopDelegateOrderType": "MARKET", // 止損委託訂單類型
"stopDelegateTimeInForce": "GTC", // 止損委託有效方式
"stopDelegatePrice": "100000.0", // 止損委託價
"closeType": "ALL", // 平倉類型:ALL(全倉);FIXED(部分倉位)
"state": "NOT_TRIGGERED", // 狀態
"desc": "", // 描述
"triggerPriceSide": "UP", // 觸發價方向
"createdTime": 1731231231000, // 創建時間(ms)
"updatedTime": 1731231231000, // 更新時間(ms)
"leverage": 20, // 槓桿倍數
"entryPrice": "107577.0", // 開倉均價
"positionSize": "0.5", // 持倉數量(標的幣)
"isolatedMargin": "21.59097358", // 逐倉保證金
"positionType": "ISOLATED", // 倉位類型:CROSSED;ISOLATED
"sourceType": "DEFAULT", // 來源類型
"sourceId": "556931318219000000", // 來源id
"fixedPositionInfo": { // 僅 FIXED 平倉類型出現
"profitFixedLatest": { // 最新的部分倉位止盈止損(無則爲空對象 {})
"profitId": "556931318219666114",
"triggerPriceType": "LATEST_PRICE",
"triggerProfitPrice": "121000.0",
"triggerStopPrice": "99000.0"
},
"profitFixedCount": 2 // 部分倉位止盈止損總數
}
},
"ts": 1731231231000
}