通過clientOid獲取訂單詳情

此接口,可以通過clientOid獲取單個止盈止損單信息。

HTTP請求

GET /api/v1/stop-order/queryOrderByClientOid

請求示例

GET /api/v1/stop-order/queryOrderByClientOid?symbol=BTC-USDT&clientOid=9823jnfda923a

[
  {
    "id": "vs8hoo8os561f5np0032vngj",
    "symbol": "KCS-USDT",
    "userId": "60fe4956c43cbc0006562c2c",
    "status": "NEW",
    "type": "limit",
    "side": "buy",
    "price": "0.01000000000000000000",
    "size": "0.01000000000000000000",
    "funds": null,
    "stp": null,
    "timeInForce": "GTC",
    "cancelAfter": -1,
    "postOnly": false,
    "hidden": false,
    "iceberg": false,
    "visibleSize": null,
    "channel": "API",
    "clientOid": "2b700942b5db41cebe578cff48960e09",
    "remark": null,
    "tags": null,
    "orderTime": 1629020492834532568,
    "domainId": "kucoin",
    "tradeSource": "USER",
    "tradeType": "TRADE",
    "feeCurrency": "USDT",
    "takerFeeRate": "0.00200000000000000000",
    "makerFeeRate": "0.00200000000000000000",
    "createdAt": 1629020492837,
    "stop": "loss",
    "stopTriggerTime": null,
    "stopPrice": "1.00000000000000000000"
  }
]
API權限

此接口需要通用權限

請求URL

此接口支持現貨URL

頻率限制

現貨類權重:3

請求參數
請求參數 類型 是否必須 含義
clientOid String 客戶端生成的標識
symbol String 交易對
返回值
字段 含義
id 訂單id,訂單唯一標識
symbol 交易對
userId 用戶ID
status 訂單狀態: NEW(新建), TRIGGERED(已觸發)
type 訂單類型
side 買或賣
price 訂單價格
size 訂單數量
funds 下單金額
stp 自成交保護
timeInForce 訂單時效策略
cancelAfter timeInForce 爲 GTT n秒後觸發
postOnly 是否爲被動委託
hidden 是否爲隱藏單
iceberg 是否爲冰山單
visibleSize 冰山單在買賣盤可見數量
channel 下單來源
clientOid 客戶端生成的標識
remark 訂單說明
tags 訂單標籤
orderTime 止損單下單時間,精確到納秒
domainId 租戶ID
tradeSource 訂單來源: USER(用戶下單), MARGIN_SYSTEM(操盤系統下單)
tradeType 交易類型: TRADE(現貨交易), MARGIN_TRADE(全倉槓桿交易), MARGIN_ISOLATED_TRADE(逐倉槓桿交易)
feeCurrency 計手續費幣種
takerFeeRate taker的手續費費率
makerFeeRate maker的手續費費率
createdAt 創建時間
stop 止盈止損類型
stopTriggerTime 止損單觸發時間
stopPrice 觸發價格