select date_trunc('month',block_timestamp) as month, (sum(amount_in_usd)+sum(amount_out_usd)) as swap_volume_usd, platform,
(sum(amount_in)+sum(amount_out)) as swap_volume
from ethereum.core.ez_dex_swaps
where block_timestamp::date>='2021-01-01' and (token_in='0xac51066d7bec65dc4589368da368b212745d63e8'
or token_out='0xac51066d7bec65dc4589368da368b212745d63e8')
group by 1,3
order by 1