Query editor
-- DUNE NATIVE, UNFILTERED | updated 2026-10-12-- All native Dune swap rows in the existing chain/date scope are eligible.-- No custom liquidity, trader-count, wallet, transaction, token or protocol exclusions.-- amount_usd comes directly from Dune. NULL USD is not imputed.-- No uploaded datasets, external volume replacements or estimated supplements.-- Existing calendar buckets, metric definitions and Top-N display limits are retained.WITH native_trades AS (SELECTblock_date,block_time,project,CAST(version AS VARCHAR) AS version,token_pair,blockchain,tx_from,tx_hash,CAST(amount_usd AS DOUBLE) AS amount_usdFROM dex.tradesWHEREblock_date >= DATE_TRUNC('DAY', CURRENT_TIMESTAMP) - INTERVAL '180' DAYAND block_date < DATE_TRUNC('DAY', CURRENT_TIMESTAMP) + INTERVAL '1' DAYAND blockchain = 'bnb')SELECTDATE_TRUNC('WEEK', block_date - INTERVAL '4' DAY) + INTERVAL '4' DAY AS "Date",project AS "DEX",SUM(amount_usd) AS "USD Volume",COUNT(DISTINCT tx_from) AS DAU,COUNT(DISTINCT tx_hash) AS tradesFROM native_tradesWHEREblock_date > DATE_TRUNC('DAY', CURRENT_TIMESTAMP) - INTERVAL '180' DAYGROUP BY1,2ORDER BY1 DESC,3 DESC