Query editor
with usd as (selectdate_trunc('{{Time}}', minute) as dayt,avg(price) as pricesfrom prices.usdwhere symbol = 'ETH'group by 1),transfer as (selectdt,sum(amount) as netflowfrom (selectdate_trunc('{{Time}}', block_time) as dt,value / 1e18 as amountfrom ethereum.transactions awhere to = {{Wallet}}union allselectdate_trunc('{{Time}}', block_time) as dt,(-1) * value / 1e18 as amountfrom ethereum.transactions awhere "from" = {{Wallet}}--and to not in (select address from ethereum.creation_traces))group by 1)selectdayt,netflow,pricesfrom transfer afull outer join usd b on a.dt = b.daytwhere dayt >= now() - interval '{{Timeframe}}' day