跳到主要內容

獲取市場成交

HTTP 請求

GET /spot/deals

請求參數

參數名是否必須類型說明
markettruestring市場名稱
limitfalseint交易資料條數。
預設100,最大值為1000.
last_idfalseint查詢的交易ID 的起點,0 表示從最新記錄開始獲取

請求回應

參數名類型說明
deal_idintdeal id
created_atint成交時間戳記(毫秒)
sidestringtaker方向,"buy"或"sell"
pricestring成交價格
amountstring成交數量

請求範例

GET /spot/deals?market=BTCUSDT

回應範例

{
"code": 0,
"data": [
{
"deal_id": 3514376759,
"created_at": 1689152421692,
"side": "buy",
"price": "30718.42",
"amount": "0.00000325"
},
{
"deal_id": 3514376758,
"created_at": 1689152421692,
"side": "buy",
"price": "30718.42",
"amount": "0.00015729"
},
{
"deal_id": 3514376757,
"created_at": 1689152421692,
"side": "sell",
"price": "30718.42",
"amount": "0.00154936"
}
],
"message": "OK"
}