Query editor
-- Daily DEX volume and active wallets of the Smart Money Leaderboard (query_8817293), by chainWITH sm AS (SELECT wallet_address FROM query_8817293)SELECT date_trunc('day', d.block_time) AS day,d.blockchain,sum(d.amount_usd) AS volume_usd,count(DISTINCT d.tx_from) AS active_wallets,count(*) AS tradesFROM dex.trades dJOIN sm ON sm.wallet_address = d.tx_fromWHERE d.block_time > now() - interval '30' dayAND d.blockchain IN ('ethereum','base','arbitrum')AND d.amount_usd BETWEEN 10 AND 5000000GROUP BY 1, 2ORDER BY 1, 2