select date(block_timestamp) as day, sum(amount_usd) as tvl, avg(amount_usd) as volume from ethereum.udm_events
where contract_address in ('0x383518188c0c6d7730d91b2c03a03c837814a899', '0x64aa3364f17a4d01c6f1751fd97c2bd3d7e7f1d5')
and amount_usd > 0 and amount_usd is not null
group by day