Query editor
-- Per (day, chain, project) volume on Uniswap and PancakeSwap. The DENOMINATOR for-- Native Relay > Markets; the numerator is our own relay/volume, never this table.---- WHY THE NUMERATOR IS NOT FROM HERE. `dex.trades` carries a `native` project too, and-- it undercounts us by 13%: over the 7 days to 2026-08-31 it saw $193.5M against the-- $223.1M our own collector reports, and it saw NOTHING at all on Robinhood Chain, where-- we did $2.43M. Dune's spellbook has not picked up every deployment. So this query only-- ever supplies the AMM side.---- NO ASSET FILTER — this is the WHOLE chain. That makes the ratio a measure of scale-- ("how big is Native on this chain"), NOT of competitiveness: Uniswap on Ethereum-- quotes thousands of assets Relay has never routed. The competitiveness reading, with-- the denominator restricted to our own book, is on Core > Markets and is a different-- number. Whichever page prints this must say which one it is.---- 30 DAYS, not the 90 the asset query scans. The Relay board offers 24h/7d/30d and-- nothing weekly, and an unfiltered scan of both AMMs is a far heavier read than the-- asset-filtered one: there is no symbol list here to push down.SELECT CAST(date_trunc('day', block_time) AS date) AS day,blockchain,project,sum(amount_usd) AS vol,sum(CASE WHEN block_time >= now() - interval '1' day THEN amount_usd ELSE 0 END) AS r1,sum(CASE WHEN block_time >= now() - interval '7' day THEN amount_usd ELSE 0 END) AS r7,sum(CASE WHEN block_time >= now() - interval '30' day THEN amount_usd ELSE 0 END) AS r30FROM dex.tradesWHERE block_date >= current_date - interval '30' dayAND block_time >= now() - interval '30' dayAND project IN ('uniswap','pancakeswap')AND amount_usd IS NOT NULLGROUP BY 1,2,3HAVING sum(amount_usd) >= 1ORDER BY day DESC, vol DESC