-- outflow from wallet
select
date_trunc('month', block_timestamp::date) as date,
symbol,
sum(amount_usd) * -1 as outflow
from
ethereum.core.ez_token_transfers
where
origin_from_address = lower('0x65392485b8d869e59b5b2a3cf7de815ed16939aa')
and block_timestamp::date >= '2022-01-01'
group by
date,
symbol
order by date