Batch download trades with filters by token, chain, and timeframe. Supports cursor-based pagination for downloading large datasets.
| Parameter | Required | Description |
|---|---|---|
from | Yes | Start of timeframe (Unix timestamp in ms or ISO 8601 date) |
to | Yes | End of timeframe (Unix timestamp in ms or ISO 8601 date) |
blockchain | No | Blockchain filter (e.g., “solana”, “base”, “ethereum”, “evm:1”) |
tokenAddress | No | Token address to filter by (matches token0 or token1) |
limit | No | Number of results per page (default: 1000, max: 5000) |
cursor | No | Cursor for pagination (from previous response’s nextCursor) |
sortOrder | No | Sort order: asc (default) or desc |
/api/2/token/trades for consistency.
Pagination object:
tokenAddress, that token becomes the base token. Without a token filter, token0 is used as base. The type field (buy/sell) is relative to the base token.