Query editor
WITH total_trading_volume AS (SELECTdate_trunc('{{timeframe}}', block_time) AS time,SUM(amount_usd) AS total_amountFROM dex.trades dtWHERE blockchain = 'base'AND (token_bought_address = 0x940181a94a35a4569e4529a3cdfb74e38fd98631OR token_sold_address = 0x940181a94a35a4569e4529a3cdfb74e38fd98631)GROUP BY 1)SELECT*,SUM(total_amount) OVER(ORDER BY time ASC) AS cummulative_volumeFROM total_trading_volumeORDER BY time DESC