dexanalytics
DEX Analytics
01. Try Our Data
Visit Docs
select * from crosschain.dex.trades limit 25000
Allium Logo
Query not run yet
0s
02. Coverage

Query DEX trades across multiple blockchains in a single query.

Blockchains SupportedProtocols and Project Supported
arbitrum
balancer_v2: balancer
camelot_v3: camelot
curve_v1: curve
curve_v2: curve
dodo_v2: dodo
kyberswap_elastic: kyberswap
pancakeswap_v3: pancakeswap
trader_joe_v2: trader_joe
trader_joe_v2_1: trader_joe
uniswap_v2: apeswap, alienfi, integralsize, zyberswap, uniswap, camelot, swapfish, wtfdex, oreoswap, sushiswap, swaprum, arbitrum_exchange, mmfinance, dxswap, sharkyswap, lfgswap, elkfinance, pancakeswap, arbswap, trader_joe, arbiswap
uniswap_v3: chronos, solidly, sushiswap, summaswap, cresentswap, uniswap, arbitrum_exchange, ramses, horiza, thick
avalanche
balancer_v2: balancer
curve_v1: curve
curve_v2: curve
dexalot_v1: dexalot
dodo_v2: dodo
hashflow_v3: hashflow
kyberswap_elastic: kyberswap
trader_joe_v2: trader_joe
trader_joe_v2_1: trader_joe
uniswap_v2: elkfinance, trader_joe, canary, partyswap, onavax, vapordex, hakuswap, alligator, vavalon, lydiafinance, thorus, baguette, yetiswap, zeroswap, pandaswap, sushiswap, pyreswap, pangolin, swapsicle, uniswap, hurricaneswap, complusswap, radioshackswap, olive
uniswap_v3: pharaoh, pangolin, sushiswap, uniswap, vapordex
base
aerodrome_v2: aerodrome
balancer_v2: balancer
curve_v1: curve
curve_v2: curve
dodo_v2: dodo
kyberswap_elastic: kyberswap
maverick: maverick
uniswap_v2: uniswap, baseswap, sushiswap, pancakeswap, swapbased, rocketswap, alienbase
uniswap_v3: thick, solidly, uniswap, sushiswap, baseswap
blast
uniswap_v2: blastdex, akitaswap, sushiswap, thruster, monoswap, icecreamswap, blaspace, uniswap, bitconnect, ring_dex, dyorswap, blasterswap, hyperblast, swapblast
uniswap_v3: thruster, monoswap, sushiswap, uniswap, blaster, blasterswap
bsc
dodo_v2: dodo
kyberswap_elastic: kyberswap
maverick: maverick
pancakeswap_stableswap: pancakeswap
pancakeswap_v3: pancakeswap
thena_fusion: thena
thena_v1: thena
trader_joe_v2: trader_joe
trader_joe_v2_1: trader_joe
uniswap_v2: bakeryswap, bscswap, nomiswap, biswap, uniswap, babyswap, sushiswap, babydogeswap, julswap, pancakeswap, fstswap, demaxswap, mdex, apeswap
uniswap_v3: uniswap, apeswap, sushiswap, sheepdex
celo
uniswap_v2: ubeswap, sushiswap, padi
uniswap_v3: uniswap, ubeswap
ethereum
airswap_light: airswap
airswap_light_v0: airswap
airswap_v2: airswap
airswap_v3: airswap
airswap_v4: airswap
balancer_v1: balancer
balancer_v2: balancer
bancor_v1: bancor
bancor_v3: bancor
clipper_fmm_v1: clipper
clipper_fmm_v2: clipper
clipper_fmm_v3: clipper
curve_v1: curve
curve_v2: curve
dodo_v1: dodo
dodo_v2: dodo
hashflow_v3: hashflow
kyberswap_elastic: kyberswap
maverick: maverick
native_v1: native
pancakeswap_v3: pancakeswap
trader_joe_v2_1: trader_joe
uniswap_v2: uniswap, shibaswap, sushiswap, orionprotocol, verse, equalizerfinance, swapr, wallstreetbetsdex, sashimiswap, cityswap, vulcandex, dooar, saitaswap, plasmafinance, mintyswap, integralsize, radioshackswap, gemswap, safeswap, unicly, bitberryswap, whiteswap, nomiswap, sumswap, convergence, sakeswap, luaswap, defiswap, swipeswap, linkswap, fraxswap, pancakeswap
uniswap_v3: uniswap, sushiswap, solidly
optimism
balancer_v2: balancer
curve_v1: curve
curve_v2: curve
dodo_v2: dodo
kyberswap_elastic: kyberswap
uniswap_v2: zipswap, openxswap, uniswap, elkfinance, sushiswap
uniswap_v3: solidly, uniswap, sushiswap
velodrome_v1: velodrome
velodrome_v2: velodrome
polygon
balancer_v2: balancer
curve_v1: curve
curve_v2: curve
dodo_v1: dodo
dodo_v2: dodo
hashflow_v3: hashflow
kyberswap_elastic: kyberswap
quickswap_v3: quickswap
uniswap_v2: jetswap, sushiswap, fraxswap, uniswap, dfyn-network, gravityfinance, apeswap-amm, polycat, elkfinance, quickswap, mmfinance
uniswap_v3: sushiswap, retro, uniswap
scroll
iziswap_v1: iziswap
uniswap_v2: luigiswap, zprotocol, canary, spacefi, quillswap, stoneswap, scrollswap, metavault, ivyswap, sanctuary, sushiswap, zerodex, punkswap, zebra, papyrusswap, icecreamswap, chiliswap, voltageswap, issuaa
uniswap_v3: kyberswap, uniswap, nuri_exchange, chadfinance, poolshark, metavault, zebra, sushiswap, keller
tron
uniswap_v2: sunswap, tofuswap, justmoney, uswap, intercroneswap
uniswap_v3: sunswap
03. Methodology
  1. Data Lineage: Each DEX swap (i.e., each row) is indexed from on-chain raw data. For Ethereum Virtual Machine (EVM) compatible blockchains, event logs are typically used to identify on-chain swaps. For projects that do not emit suitable logs, call data (traces) may be utilized. Log-based DEX will have log-index that is not null.
  2. Protocol Identification: For each DEX protocol, we identify the event signature (topic0) emitted during a swap event and decode the event log emitted. The event log will typically contain the swap details (token bought/sold) that is necessary for constructing the DEX Trades model.
  3. Typically, most DEXs are have this Factory-Pool model where a factory address associated with a particular project will emit events that correspond to a liquidity pool creation (e.g. Uniswap V3: Factory). This event tells us the universe of DEX pools created under this project and protocol and the details of the pools (token0, token1, fee, etc).
  4. The Liquidity Pools created under this Factory will emit the corresponding Swap events which will be indexed.
  5. Token Amount and Price Enrichment: Onchain events do not provide USD price, token name, symbol and adjusted token amounts. Using external price oracle data and ERC20 tokens data, we normalized the token and enriched the swap value by hourly price data to calculate the USD value of the transaction. We preferentially select the value of more reputable tokens (e.g. Stablecoins / Wrapped Gas Token) in the usd_amount field to prevent spam token inflating price data.

Note: The DEX Trades model excludes swap events emitted by DEX aggregators to prevent double-counting of on-chain swap volume. For instance, if a DEX swap is executed by an aggregator (e.g., OpenOcean, 0x, etc.) and routed through liquidity pools on Uniswap and Balancer, only the volumes on Uniswap and Balancer are included in this table.

Want more flexible access to DEX data? Sign up for the Explorer waitlist and we'll reach out to you!