Query editor
select block_date, project,count(*) trade_count,sum(amount_usd) notional_volume,sum(case when token_bought_address = 0xEcE7B98bD817ee5B1F2f536dAf34D0B6af8Bb542 then amount_usd else 0 end) notional_buy_volume,sum(case when token_sold_address = 0xEcE7B98bD817ee5B1F2f536dAf34D0B6af8Bb542 then amount_usd else 0 end) notional_sell_volumefrom dex.tradeswhere blockchain = 'base'and (token_bought_address = 0xEcE7B98bD817ee5B1F2f536dAf34D0B6af8Bb542 or token_sold_address = 0xEcE7B98bD817ee5B1F2f536dAf34D0B6af8Bb542)group by block_date, projectorder by block_date, project