Query editor
/* Success! If you're still running into issues, check out https://dune.com/docs/query/syntax-differences/ or reach out in the #dune-sql Discord channel. */SELECTdate_trunc('day', block_time) AS day,blockchain,COUNT(DISTINCT "taker") AS unique_users,COUNT(DISTINCT tx_hash) AS txns,SUM(amount_usd) as usd_volumeFROM dex.tradesWHERE project = 'uniswap'AND blockchain IN ('ethereum','polygon','arbitrum','optimism')AND block_time >= now() - INTERVAL '{{days}}' dayGROUP BY 1,2ORDER BY day DESC