Skip to main content
Thecrosschain.dex.trades table aggregates DEX trades indexed by Allium across multiple blockchains (EVM and non-EVM) into a single table. The crosschain.dex.trades_evm table aggregates DEX trades for EVM-compatible blockchain. This model includes EVM-specific fee details (e.g. priority fees) that are not found on non-EVM chains.

Blockchain Coverage

This table currently does not contain aggregator swaps to avoid double-counting volume. The dex trades table only contains swap events/instructions from DEXs with liquidity pools/vaults.
For example, suppose a DEX swap was executed by an aggregator (e.g. Openocean or 0x) and routed to liquidity pools on Uniswap and Balancer, only the volume on Uniswap and Balancer is included dex.trades. For trades routed by aggregators, they are found in the dex.aggregator_trades models on the respective blockchain.
For volume without wash and other inorganic trades, use dex.trades_enriched on EVM chains: sum(usd_amount_adjusted). It has every dex.trades row, plus is_flagged and the reason. See Trades Enriched and Trades Flagged.

Inclusion Criteria

dex.trades is a curated table, not a raw swap-event feed. A Swap event that exists on-chain can be absent from dex.trades. If you are reconciling a specific transaction and find no row, check these causes first:
  • The DEX is not covered yet. A new DEX fork appears only after Allium adds its pools. To request coverage, contact Allium support with the pool factory address.
  • The swap is aggregator-level. Aggregator swaps are excluded to avoid double-counting volume. Find them in dex.aggregator_trades on the respective chain.
  • The swap is very small. Dust-sized swaps can produce no row. This is the most common reason a successful transaction has no match.
  • The chain is still backfilling. Rows can be transiently absent and appear once the backfill lands.
A trade’s USD columns can be empty for token-level reasons:
  • If a token has no price feed, usd_sold_amount or usd_bought_amount is null.
  • If a token has no decimals in Allium’s token metadata, token_sold_amount and token_bought_amount are null, while the _raw amount columns still resolve.
A null or 0 in usd_amount does not mean the trade did not happen. Filter on usd_amount is not null when you need priced volume, and use the raw amount columns when you need swap counts or token flow.
USD values are not a wash-trade filter. To leave out wash trades, use usd_amount_adjusted in dex.trades_enriched. How Allium decides which pools are included, which rows are filtered, how each side of a swap is valued in USD, and protocol-specific decoding is covered in the methodology below.

Sample Query

Query DEX Volume and Users Across Blockchains indexed by Allium in the last 90 days.

Table Columns

For blockchains (e.g. Solana) that are not EVM-compatible, the additional fields only relevant to these chains (e.g. Signer for Solana) are added and appended at the end of this table.