Get Recent Trades
- GET
/api/v3/market/trades
Weight(IP): 25
Request parameters
| Parameter | Type | Required? | Description |
|---|---|---|---|
| symbol | String | Yes | Trading pair, e.g. BTCUSDT. |
| limit | Integer | No | Number of trades to return. Range 1–1000, default 100. |
Request example
curl "https://api-spot.weex.com/api/v3/market/trades?symbol=BTCUSDT&limit=50"
Response parameters
| Field | Type | Description |
|---|---|---|
| id | String | Trade identifier. |
| price | String | Trade price. |
| qty | String | Executed quantity (base asset). |
| quoteQty | String | Executed amount (quote asset). |
| time | Long | Trade time (milliseconds). |
| isBuyerMaker | Boolean | true if the buyer was the maker side. |
| isBestMatch | Boolean | true if the trade matched the best price level. |
Response example
[
{
"id": "120045678901",
"price": "68950.00",
"qty": "0.002",
"quoteQty": "137.90000",
"time": 1764506000456,
"isBuyerMaker": true,
"isBestMatch": true
}
]