GET /historical_trades
Aggregator Compatibility
GET /historical_trades
Recent completed trades for a single trading pair, grouped into buy and sell sides.
GET
GET /historical_trades
Description
Returns recent trades for one pair, split intobuy and sell arrays.
Convention — type reflects the taker side:
buytrades are those where the ask was removed from the order book (the taker bought into a resting ask).selltrades are those where the bid was removed from the order book (the taker sold into a resting bid).
Parameters
Pair identifier in
{base}_{target} format, e.g. TRX_USDT.Filter by trade side. One of:
buy— only return trades in thebuyarraysell— only return trades in thesellarray- omitted — return both
Maximum number of trades per side to return.
- Allowed values:
0,100,200,500 0returns the maximum available history
Inclusive lower bound on
trade_timestamp, Unix epoch in milliseconds.Inclusive upper bound on
trade_timestamp, Unix epoch in milliseconds.Response
Array of trade objects (see schema below) where the taker bought.
Array of trade objects where the taker sold.
Trade object schema
Unique trade identifier. Strictly increasing per pair.
Trade price in target currency.
Trade size in base currency.
Trade size in target currency. Equals
price * base_volume.Trade execution time, Unix epoch in milliseconds.
"buy" or "sell" — matches the array the trade appears in.Example request
Example response
Notes
- Trades are sorted by
trade_timestampdescending (most recent first). trade_idis unique within a pair, but is not guaranteed to be globally unique across pairs.- For very high-frequency consumers, a WebSocket trade stream is on the roadmap for v2.
Errors
| Code | Cause |
|---|---|
400 INVALID_PARAM | ticker_id missing, or limit/type invalid, or start_time > end_time. |
404 NOT_FOUND | The ticker_id is not a valid trading pair. |
