獲取最近訂單列表
此接口,可獲取最近24小時的1000條訂單數據。 返回值是分頁後的數據,根據時間降序排序。
HTTP請求
GET /api/v1/limit/orders
請求示例
GET /api/v1/limit/orders
{
"code":"200000",
"msg":"",
"data":[
{
"id": "demoData",
"symbol": "demoData",
"opType": "demoData",
"type": "demoData",
"side": "demoData",
"price": 1,
"size": 1,
"funds": 1,
"dealFunds": 1,
"dealSize": 1,
"fee": 1,
"feeCurrency": "demoData",
"stp": "demoData",
"stop": "demoData",
"stopTriggered": true,
"stopPrice": 1,
"timeInForce": "demoData",
"postOnly": true,
"hidden": true,
"iceberg": true,
"visibleSize": 1,
"cancelAfter": 1,
"channel": "demoData",
"clientOid": "demoData",
"remark": "demoData",
"tags": "demoData",
"isActive": true,
"cancelExist": true,
"createdAt": "2023-06-20 12:22:56",
"tradeType": "demoData"
}
]
}
API權限
此接口需要通用權限
請求URL
此接口支持現貨URL
頻率限制
現貨類權重
:3
返回值
字段 | 含義 |
---|---|
id | 訂單id,訂單唯一標識 |
symbol | 交易對 |
opType | 操作類型: DEAL |
type | 訂單類型 |
side | 買或賣 |
price | 訂單價格 |
size | 訂單數量 |
funds | 下單金額 |
dealFunds | 成交額 |
dealSize | 成交數量 |
fee | 手續費 |
feeCurrency | 計手續費幣種 |
stp | 自成交保護 |
stop | 止盈止損類型, entry:止盈; loss:止損 |
stopTriggered | 是否觸發止盈止損 |
stopPrice | 止盈止損觸發價格 |
timeInForce | 訂單時效策略 |
postOnly | 是否爲被動委託 |
hidden | 是否爲隱藏單 |
iceberg | 是否爲冰山單 |
visibleSize | 冰山單在買賣盤可見數量 |
cancelAfter | timeInForce 爲 GTT n秒後過期 |
channel | 下單來源 |
clientOid | 客戶端生成的標識 |
remark | 訂單說明 |
tags | 訂單標籤 |
isActive | 訂單狀態 true: 訂單狀態爲 open; false: 訂單已成交或取消 |
cancelExist | 訂單是否存在取消記錄 |
createdAt | 創建時間 |
tradeType | 交易類型: TRADE(現貨交易), MARGIN_TRADE(槓桿交易) |