Get Public Trading History
Query recent public trading data in Zoomex.
Covers: Spot / USDT perpetual/ Inverse contract
You can download archived historical trades here:
HTTP Request
GET /cloud/trade/v3/market/recent-trade
Request Parameters
| Parameter | Required | Type | Comments |
|---|---|---|---|
| category | true | string | Product type. spot,linear,inverse |
| symbol | false | string | Symbol name
|
| limit | false | integer | Limit for data size per page.
|
Response Parameters
| Parameter | Type | Comments |
|---|---|---|
| category | string | Products category |
| list | array | Object |
| > execId | string | Execution ID |
| > symbol | string | Symbol name |
| > price | string | Trade price |
| > size | string | Trade size |
| > side | string | Side of taker Buy, Sell |
| > time | string | Trade time (ms) |
Request Example
GET /cloud/trade/v3/market/recent-trade?category=linear&symbol=BTCUSDT&limit=1 HTTP/1.1
Host: openapi-testnet.zoomex.com
Response Example
{
"retCode": 0,
"retMsg": "OK",
"result": {
"category": "linear",
"list": [
{
"execId": "2100000000007764263",
"symbol": "BTCUSDT",
"price": "16618.49",
"size": "0.00012",
"side": "Buy",
"time": "1672052955758"
}
]
},
"retExtInfo": {},
"time": 1672053054358
}