select
platform,
case when amount_in > 0 then 'Sell' else 'Buy' end as category,
sum(amount_in + amount_out) as volume,
count(*) as number_of_users
from flipside_prod_db.ethereum.dex_swaps
where token_address = '0x2e9d63788249371f1dfc918a52f8d799f4a38c94'
and block_timestamp::date >= getdate() - interval'60 days'
and platform in ('sushiswap', 'uniswap-v2')
group by 1, 2