select
to_date(block_timestamp) as day,
avg(current_bal) as tvl,
avg(current_bal_usd) as tvl_usd
from
ethereum.core.ez_balance_deltas
where
user_address = '0x815c23eca83261b6ec689b60cc4a58b54bc24d8d'
and contract_address = '0xa5f2211b9b8170f694421f2046281775e8468044'
group by
day
order by
day DESC