Query editor
-- This query has been migrated to run on DuneSQL.-- If you need to change back because you’re seeing issues, use the Query History view to restore the previous version.-- If you notice a regression, please email [email protected].WITHData AS (SELECTDATE_TRUNC('day', block_time) AS "Date",SUM(amount_usd) AS "Value"FROMnft.tradesWHEREblockchain = 'ethereum'AND project = 'opensea'AND block_time > CURRENT_TIMESTAMP - INTERVAL '5' yearAND "currency_symbol" <> 'GALA'AND "currency_symbol" <> 'USDC'GROUP BY1ORDER BY1)SELECTDATE_TRUNC('Week', "Date") AS "Date",SUM("Value") AS "Value"FROMDataGROUP BY1ORDER BY1 DESC NULLS FIRST