Skip to main content
DEX metrics are two daily tables. metrics.dex_pools_daily holds one row per pool per day, with every pool measure. metrics.dex_pool_pairs_daily splits the same volume by traded pair: one row per pool per pair per day. Every figure is in USD, converted with our token prices at the finest level and added up from there.
  • metrics.dex_pools_daily: one row per pool per day.
  • metrics.dex_pool_pairs_daily: one row per pool per traded pair per day.

Tables

One row per pool per day, keyed (dex_pool_id, timestamp). The table carries trading_volume, tvl, fees and flash_loan_volume, alongside the keys for the app, the protocol version, the project and the chain.
ColumnTypeDescription
timestampTIMESTAMPDay the row aggregates, truncated to UTC midnight.
dex_pool_idSTRINGPool the row measures, keyed like dimensions.dex_pools.
deployment_idSTRINGThe operating app’s deployment on the pool’s chain.
protocol_idSTRINGThe app operating the pool.
project_idSTRINGProject the operating app belongs to.
chain_idSTRINGChain the pool lives on.
trading_volumeBIGNUMERICUSD value of the day’s swaps in the pool.
tvlBIGNUMERICTotal value locked: the USD value of what the pool was holding at the end of the day.
feesBIGNUMERICUSD value of the day’s swap and flash-loan fees.
flash_loan_volumeBIGNUMERICUSD value of the day’s flash loans drawn from the pool.

Sample queries

Read one pool’s daily series.
fees is worked out from the same volume figure as trading_volume, so dividing one by the other gives back the pool’s fee rate. It is not a second, independent measurement of what traders paid. Pool rows add up cleanly to the app’s deployment on that chain, then the protocol version, then the project, because every level uses the same token prices.

Notes

Amounts add up: volume, fees and flash-loan volume are dollar figures, so a total across pools or days means something. Counts of distinct traders do not. One address that traded in five pools is one trader, but adding those five pools’ daily counts makes it five. A trader count for anything wider than one pool on one day has to be worked out from the addresses themselves.