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].SELECTDATE_TRUNC('week', block_time) AS week,SUM(SUM(amount_usd)) OVER (ORDER BYDATE_TRUNC('week', block_time)) AS socks_cumulative_volumeFROMdex."trades"WHEREblockchain = 'ethereum'AND 0x23b608675a2b2fb1890d3abbd85c5775c51691d5 IN (token_sold_address, token_bought_address)GROUP BY1ORDER BY1 DESC