Query Details
This endpoint allows batch downloading of trades across the entire platform with filtering capabilities. Ideal for:- Downloading all trades for a specific chain
- Downloading all trades involving a specific token
- Building historical trade datasets
- Analytics and backtesting
| 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 |
Response Overview
The response uses the same trade format as/api/2/token/trades for consistency.
Pagination object:
- count: Number of trades returned in this response
- nextCursor: Cursor to use for fetching the next page (null if no more results)
- hasMore: Boolean indicating if more results are available
- from/to: Timestamps of the queried timeframe
- id: Unique swap identifier
- operation: Operation type (regular, deposit, withdrawal)
- type: Trade direction (buy, sell, deposit, withdrawal)
- baseTokenAmount/quoteTokenAmount: Token amounts (formatted)
- baseTokenAmountRaw/quoteTokenAmountRaw: Token amounts in smallest units
- baseTokenAmountUSD/quoteTokenAmountUSD: Trade value in USD
- baseTokenPriceUSD/quoteTokenPriceUSD: Token prices at execution time
- date: Trade timestamp in milliseconds
- blockchain: Human-readable blockchain name
- transactionHash: Transaction hash
- marketAddress: Pool/market address
- swapSenderAddress: Address that executed the swap
- transactionSenderAddress: Transaction originator (tx.from)
- swapRecipient: Actual beneficiary of the swap
- baseToken: Base token metadata (address, name, symbol, logo, decimals)
- quoteToken: Quote token metadata (address, name, symbol, logo, decimals)
- labels: Array of labels (sniper, bundler, insider, etc.)
- platform: Trading platform metadata (if available)
- totalFeesUSD/gasFeesUSD/platformFeesUSD/mevFeesUSD: Fee breakdown
Usage Examples
Download all Solana trades in a 1-hour window:Sample Response
Base/Quote Token Logic: When filtering by
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.