Skip to main content

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​

ParameterTypeRequiredDescription
categorystringYesProduct type: spot / linear
symbolstringYesTrading pair
limitintNoNumber of returned entries, default 100, maximum 100

Response Parameters​

FieldTypeDescription
execIdstringtrade ID
pricestringexecution price
sizestringexecution volume
sidestringBUY / SELL
tsstring(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
}