Query editor
select block_date,project,count(*) as trade_count,sum(amount_usd) as trade_amount,count(distinct taker) as user_count,avg(amount_usd) as avg_trade_amountfrom dex_aggregator.tradeswhere block_date >= now() - interval '1' year-- exclude outlier wrong tx dataand not (block_date = date('2023-05-23')and tx_hash = 0x14613a8f439f5f65b3235fbae95b67bc5f6aa7b0937af73e8df593e00d8abb12)and not (blockchain = 'polygon'and tx_hash in (0xb2f18844b54f21170bb4b6d136ef2e2f3e4b0aa21bf322b6c28b53468b47652a,0xaf822bbff8daf6c6fa9fa9d76068f919cc104e78ce60d8ae160de2b778b41e25))group by 1, 2order by 1, 2