Query editor
withevms as (selectblockchain, date_trunc('month', block_time ) as month, sum(amount_usd) as "USD Volume", count(distinct tx_hash) as "Trades", count(distinct tx_from) as "Traders"from dex.tradeswhereblockchain in ('polygon', 'ethereum', 'bnb', 'base', 'arbitrum', 'optimism', 'avalanche_c', 'sei', 'aptos')and block_time >= date'2024-10-01'and block_time < date'2025-05-01'and amount_usd is not nulland amount_usd > 0group by 1,2order by 2,1), solana as (select'solana' as blockchain, date_trunc('month', block_time ) as month, sum(amount_usd) as "USD Volume", count(distinct tx_id) as "Trades", count(distinct trader_id) as "Traders"from dex_solana.tradeswhereblock_time >= date'2025-02-01'and block_time < date'2025-05-01'and amount_usd is not nulland amount_usd > 0group by 1,2order by 2,1), berachain as (selectblockchain, month, "USD Volume", trades as "Trades", traders as "Traders"from query_4901912), all as (select * from evmsunion all