Get trades (Deprecated)
Deprecated: Use /v1/hyperliquid/trades/{symbol} or /v1/lighter/trades/{symbol} instead.
Get historical trades (fills) for a coin within a time range. Includes full execution details like fees, PnL, and position direction.
Pagination: Use the cursor parameter with the timestamp from the previous response's next_cursor for efficient pagination through large datasets.
Request
- Base URL: https://api.0xarchive.io
- URL: https://api.0xarchive.io/v1/trades/{symbol}
- Auth: API key in header X-API-Key
Path parameters
Trading pair symbol (e.g., BTC, ETH, SOL)
Query parameters
Start timestamp in Unix milliseconds. Defaults to 24h ago.
End timestamp in Unix milliseconds. Defaults to now.
Recommended. Cursor for pagination (use the value from previous response's next_cursor). The cursor is an opaque string that should be passed as-is.
Maximum number of results (default: 100, max: 1000)
Response
List of trades with cursor for next page
Example response
{
"success": true,
"data": [
{
"symbol": "BTC",
"coin": "BTC",
"side": "B",
"price": "42150.50",
"size": "0.5",
"timestamp": "2025-01-21T10:30:45.123Z"
}
]
}Changes
No recorded changes to this operation across all 1 revision of this API.