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),TRY_CAST (SUM(CAST(amount_usd AS DOUBLE)) AS DECIMAL(18, 0))FROMdex."trades"WHEREblock_time > CURRENT_TIMESTAMP - INTERVAL '7' dayGROUP BY 1