Query editor
-- first clean dex aggregator trades data (unsure if necessary)with aggregator_trades as (select *from dex.tradeswhere-- exclude outlier wrong tx data (informed from https://dune.com/queries/2481194/4081997)not (block_date = date('2023-05-23')and tx_hash = 0x14613a8f439f5f65b3235fbae95b67bc5f6aa7b0937af73e8df593e00d8abb12)and not (blockchain = 'polygon'and tx_hash in (0xb2f18844b54f21170bb4b6d136ef2e2f3e4b0aa21bf322b6c28b53468b47652a,0xaf822bbff8daf6c6fa9fa9d76068f919cc104e78ce60d8ae160de2b778b41e25)))-- get the aggregator trade volumes over timeSELECTdate_trunc('month', block_time) AS month,project,SUM(amount_usd) AS usd_volumeFROMaggregator_tradeswhereblock_date >= date('2019-06-01')GROUP BY1, 2ORDER BYmonth, project;