Recent Trades
Recent public trades for a symbol.
Endpoint
GET /v1/market/trades
Weight: 5.
Authentication: Public (optional signing).
Query parameters
| Name | Type | Mandatory | Description |
|---|---|---|---|
symbol | string | Yes | Trading pair, uppercase, e.g. BTCUSDT. |
limit | integer | No | Number of trades to return. Range 1–1000. Default 500. |
Trades are returned in descending time order (most recent first).
Response
[
{
"id": 4823917221,
"price": "67432.15",
"qty": "0.0421",
"quoteQty": "2840.91",
"time": 1745923199821,
"isBuyerMaker": false
},
{
"id": 4823917220,
"price": "67432.10",
"qty": "0.1100",
"quoteQty": "7417.53",
"time": 1745923199734,
"isBuyerMaker": true
},
{
"id": 4823917219,
"price": "67432.20",
"qty": "0.0050",
"quoteQty": "337.16",
"time": 1745923199610,
"isBuyerMaker": false
}
]
Response fields
| Field | Type | Description |
|---|---|---|
id | integer | Globally unique, monotonically increasing trade id. |
price | string (decimal) | Trade price. |
qty | string (decimal) | Trade quantity in base asset. |
quoteQty | string (decimal) | Trade quantity in quote asset (price * qty). |
time | integer | Trade time, Unix milliseconds. |
isBuyerMaker | boolean | true if the buyer was the resting order (i.e. the trade was a sell aggression). |
Errors
| HTTP | Code | Meaning |
|---|---|---|
| 400 | INVALID_PARAMETER | Missing symbol, or limit out of range. |
| 400 | UNKNOWN_SYMBOL | Symbol does not exist. |
| 429 | RATE_LIMITED | Per-key request weight exceeded. |
Example
curl -s "https://api.pipai.io/v1/market/trades?symbol=BTCUSDT&limit=100"