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('week', block_time),TRY_CAST (SUM(CAST(amount_usd AS DOUBLE)) AS DECIMAL(18, 0)),(project)FROMdex."trades"WHEREblock_time >= CAST('2020-01-01' AS TIMESTAMP)GROUP BY1,3