通過orderId獲取訂單詳情
此接口,可以通過訂單id獲取單個訂單信息。
HTTP請求
GET /api/v1/stop-order/{orderId}
請求示例
GET /api/v1/stop-order/5c35c02703aa673ceec2a168
{
"id": "vs8hoo8q2ceshiue003b67c0",
"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": "40e0eb9efe6311eb8e58acde48001122",
"remark": null,
"tags": null,
"orderTime": 1629098781127530345,
"domainId": "kucoin",
"tradeSource": "USER",
"tradeType": "TRADE",
"feeCurrency": "USDT",
"takerFeeRate": "0.00200000000000000000",
"makerFeeRate": "0.00200000000000000000",
"createdAt": 1629098781128,
"stop": "loss",
"stopTriggerTime": null,
"stopPrice": "10.00000000000000000000"
}
API權限
此接口需要通用權限
請求URL
此接口支持現貨URL
頻率限制
現貨類權重
:3
請求參數
請求參數 | 類型 | 是否必須 | 含義 |
---|---|---|---|
orderId | String | 是 | 路徑參數,訂單Id唯一標識 |
返回值
字段 | 含義 |
---|---|
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 | 觸發價格 |