Skip to main content

Get Market Transactions

HTTP request

GET /spot/deals

Request parameters

Parameter NameRequiredTypeNotes
markettruestringMarket name
limitfalseintNumber of transaction data items.
Default as 100, max. value 1000.
last_idfalseintThe starting point of the query TxID, 0 means to acquire from the latest record

Return parameters

Parameter NameTypeNotes
deal_idintdeal id
created_atintTransaction timestamp (millisecond)
sidestringTaker side, "buy" or "sell"
pricestringFilled price
amountstringExecuted Amount

Request example

GET /spot/deals?market=BTCUSDT

Response example

{
"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"
}