select date_trunc('day', block_timestamp::date) as dates, sum (AMOUNT_usd) as swap_volume,platform
from ethereum.dex_swaps
where block_timestamp >= '2022-01-01'
and platform != 'curve'
and direction = 'IN'
and amount_in > '0'
and block_timestamp between '2022-02-04' and '2022-03-15'
group by dates,platform
order by dates