Get Market Transactions
HTTP request
GET /spot/deals
Request parameters
Parameter Name | Required | Type | Notes |
---|---|---|---|
market | true | string | Market name |
limit | false | int | Number of transaction data items. Default as 100, max. value 1000. |
last_id | false | int | The starting point of the query TxID, 0 means to acquire from the latest record |
Return parameters
Parameter Name | Type | Notes |
---|---|---|
deal_id | int | deal id |
created_at | int | Transaction timestamp (millisecond) |
side | string | Taker side, "buy" or "sell" |
price | string | Filled price |
amount | string | Executed 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"
}