Query editor
WITH deposits as (SELECTdate_trunc('week', block_time) as time,sum("value"/1e18) as eth_amountFROM ethereum.transactionsWHERE "to" = {{rollbit eth address}}GROUP BY 1),withdraws as (SELECTdate_trunc('week', block_time) as time,sum("value"/1e18) as eth_amountFROM ethereum.transactionsWHERE "from" = {{rollbit eth address}}GROUP BY 1)SELECTd.time AS week,d.eth_amount as deposits,- w.eth_amount as withdrawals,d.eth_amount - w.eth_amount AS net_depositsFROM deposits AS dLEFT JOIN withdraws AS w ON d.time = w.time