select date_trunc('day',block_timestamp) as date ,sum(aMOUNT_in) as amnt_in, sum(amount_out) as amnt_out
from ethereum.dex_swaps
-- where symbol ='stETH' and event_name ='AddLiquidity'
-- where contract_address='0xdc24316b9ae028f1497c275eb9192a3ea0f67022'
-- where contract_name = 'stETH'
where platform = 'curve' and pool_name ='stETH' and date > '2021-09-01'
group by date order by date asc
limit 200