Get Recent Market Trades
Description
Query recent trading volume data
HTTP Request
- POST
/api/v3/market/trades - Supported Products:
spot/linear - Rate Limit: 10 requests per second per IP
Request Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
category | string | Yes | Product type: spot / linear |
symbol | string | Yes | Trading pair |
limit | int | No | Number of returned entries, default 100, maximum 100 |
Response Parameters
| Field | Type | Description |
|---|---|---|
execId | string | trade ID |
price | string | execution price |
size | string | execution volume |
side | string | BUY / SELL |
ts | string(long) | Execution time (ms) |
Request Example
POST /api/v3/market/trades HTTP/1.1
Host: openapi.lbank.com
Content-Type: application/json
ex-timestamp: <current_unix_timestamp_ns>
{
"category": "linear",
"symbol": "ETHUSDT",
"limit": 2
}
Response Example
{
"code": 200,
"message": "Success",
"data": {
"list": [
{
"execId": "bc068b15-d04e-4bcc-9dde-f47a2f64b57d",
"price": "1942.29000",
"size": "0.007000",
"side": "BUY",
"ts": "1793183989730"
}
]
},
"extras": null
}