Query editor
with hourly_trade_summary as (select date_trunc('day', block_time) as block_date,sum(number_of_items) as items_traded,sum(amount_raw) / 1e18 as amount_raw_traded,sum(amount_usd) as amount_usd_tradedfrom nft.tradeswhere nft_contract_address = 0xcc451977a4be9adee892f7e610fe3e3b3927b5a1-- and block_time > now() - interval '30' daygroup by 1order by 1)select block_date,items_traded,amount_raw_traded,amount_usd_traded,sum(items_traded) over (order by block_date asc) as accumulate_items_traded,sum(amount_raw_traded) over (order by block_date asc) as accumulate_amount_raw_traded,sum(amount_usd_traded) over (order by block_date asc) as accumulate_amount_usd_tradedfrom hourly_trade_summaryorder by block_date