Query Details
You can query trades either by pool address or by asset address:- mode: pair - Query trades for a specific pool/pair address
- mode: asset - Query trades across top pools for a token asset
| Parameter | Required | Description |
|---|---|---|
blockchain | Yes | Blockchain identifier (e.g., “base”, “ethereum”, “bsc”) |
address | Yes | Token or pool address depending on mode |
mode | No | Query mode: pair (default) or asset |
limit | No | Number of results per page (default: 10, max: 1000) |
offset | No | Offset for pagination (default: 0) |
sortOrder | No | Sort order: asc or desc (default: desc) |
label | No | Filter by wallet label (e.g., PRO_TRADER, SMART_TRADER, FRESH_TRADER, DEV) |
swapTypes | No | Array of swap types to filter (e.g., REGULAR, DEPOSIT, WITHDRAWAL) |
transactionSenderAddresses | No | Array of transaction sender addresses to filter (max: 25) |
minAmountUSD | No | Minimum trade amount in USD |
maxAmountUSD | No | Maximum trade amount in USD |
fromDate | No | Start date for trade filtering (ISO 8601 or Unix timestamp) |
toDate | No | End date for trade filtering (ISO 8601 or Unix timestamp) |
Response Overview
Each item indata[] represents a single trade:
- id: Unique swap identifier
- operation: Swap operation type (regular, deposit, withdrawal)
- type: Trade type (
buy,sell,deposit, orwithdrawal) - baseTokenAmount: Amount of base token traded (formatted)
- baseTokenAmountRaw: Amount of base token traded in smallest units
- baseTokenAmountUSD: USD value of base token traded
- quoteTokenAmount: Amount of quote token traded (formatted)
- quoteTokenAmountRaw: Amount of quote token traded in smallest units
- quoteTokenAmountUSD: USD value of quote token traded
- date: Trade timestamp in milliseconds
- swapSenderAddress: Address that executed the swap
- transactionSenderAddress: Transaction originator address (tx.from)
- swapRecipient: The actual beneficiary of the swap - the wallet that receives the output tokens. This is the most important address for accurate PnL tracking, especially for Account Abstraction (AA) scenarios where
transactionSenderAddressmay be a bundler, relayer, or smart contract wallet. - blockchain: Blockchain name
- transactionHash: Transaction hash
- marketAddress: Pool/market address where trade occurred
- baseTokenPriceUSD: Base token price in USD at execution
- quoteTokenPriceUSD: Quote token price in USD at execution
- labels: Array of wallet labels (e.g.,
smart-money,pro-trader) - totalFeesUSD: Total fees paid in USD (sum of gas, platform, and MEV fees)
- gasFeesUSD: Gas fees paid in USD
- platformFeesUSD: Platform/aggregator fees paid in USD (e.g., Axiom, GMGN, Trojan)
- mevFeesUSD: MEV/priority fees paid in USD
Account Abstraction (AA) Support: The
swapRecipient field is critical for accurate wallet tracking when users trade via bundlers, relayers, or smart contract wallets. In these cases, transactionSenderAddress may be an intermediary contract, while swapRecipient represents the actual user who receives the tokens. Always use swapRecipient when available for accurate PnL calculations.Usage Examples
Query trades for a specific pool (pair mode):Sample Response
Special Labels
Thelabel parameter accepts the following values:
- PRO_TRADER: Trades from known professional trading platforms
- SMART_TRADER: Trades from wallets identified as smart traders in the last 7 days
- FRESH_TRADER: Trades from newly funded wallets (within last 24 hours)
- DEV: Trades from token deployer addresses
- Custom labels created via the wallet labels API