Query editor
-- this query retruns the daily trading volume of transactions on Base-- our analysis will involve the following variables-- date-- amount traded-- the following tables will be utilized-- dex.trades (for trading amount data,date )with trading_volume as (selectdate_trunc ('month', block_time) as month, sum(amount_usd) as total_amount_usdfromdex.tradeswhere blockchain = 'base'group by 1)select*, sum(total_amount_usd) over (order by month asc) as cummulative_trading_volumefrom trading_volumewhere month >= DATE '2024-01-01'order by month desc