獲取最近成交記錄
此接口,可以獲取最近24小時1000條成交明細的列表 返回值是分頁後的數據,根據時間降序排序。
HTTP請求
GET /api/v1/limit/fills
請求示例
GET /api/v1/limit/fills
{
"code":"200000",
"data":[
{
"counterOrderId":"5db7ee769797cf0008e3beea",
"createdAt":1572335233000,
"fee":"0.946357371456",
"feeCurrency":"USDT",
"feeRate":"0.001",
"forceTaker":true,
"funds":"946.357371456",
"liquidity":"taker",
"orderId":"5db7ee805d53620008dce1ba",
"price":"9466.8",
"side":"buy",
"size":"0.09996592",
"stop":"",
"symbol":"BTC-USDT",
"tradeId":"5db7ee8054c05c0008069e21",
"tradeType":"MARGIN_TRADE",
"type":"market"
},
{
"counterOrderId":"5db7ee4b5d53620008dcde8e",
"createdAt":1572335207000,
"fee":"0.94625",
"feeCurrency":"USDT",
"feeRate":"0.001",
"forceTaker":true,
"funds":"946.25",
"liquidity":"taker",
"orderId":"5db7ee675d53620008dce01e",
"price":"9462.5",
"side":"sell",
"size":"0.1",
"stop":"",
"symbol":"BTC-USDT",
"tradeId":"5db7ee6754c05c0008069e03",
"tradeType":"MARGIN_TRADE",
"type":"market"
},
{
"counterOrderId":"5db69aa4688933000aab8114",
"createdAt":1572248229000,
"fee":"1.882148318525",
"feeCurrency":"USDT",
"feeRate":"0.001",
"forceTaker":false,
"funds":"1882.148318525",
"liquidity":"maker",
"orderId":"5db69a9c4e6d020008f03275",
"price":"9354.5",
"side":"sell",
"size":"0.20120245",
"stop":"",
"symbol":"BTC-USDT",
"tradeId":"5db69aa477d8de0008c1efac",
"tradeType":"MARGIN_TRADE",
"type":"limit"
}
]
}
API權限
此接口需要通用權限
請求URL
此接口支持現貨URL
頻率限制
現貨類權重
:3
返回值
字段 | 含義 |
---|---|
symbol | 交易對 |
tradeId | 交易Id |
orderId | 訂單Id |
counterOrderId | 對手方訂單Id |
side | 買或賣 |
forceTaker | 是否強制作爲taker處理 |
liquidity | 流動性類型: taker 或 maker |
price | 訂單價格 |
size | 訂單數量 |
funds | 成交額 |
fee | 手續費 |
stop | 止盈止損類型, entry:止盈; loss:止損 |
tradeType | 交易類型: TRADE(現貨交易), MARGIN_TRADE(槓桿交易) |
type | 訂單類型,limit 或 market |
createdAt | 創建時間 |