Query editor
with net_flows as(selectDATE_TRUNC('hour', evt_block_time) AS timestamp,sum(case when to = 0xaf204776c7245bF4147c2612BF6e5972Ee483701 then CAST(value AS DOUBLE) / 1e18else -CAST(value AS DOUBLE) / 1e18end ) as net_flowfrom erc20_gnosis.evt_Transferwhere ("from" = 0xaf204776c7245bF4147c2612BF6e5972Ee483701or to = 0xaf204776c7245bF4147c2612BF6e5972Ee483701)and contract_address = 0xe91D153E0b41518A2Ce8Dd3D7944Fa863463a97dand evt_block_time >= date(timestamp '2023-10-05')group by 1)selecttimestamp,sum(coalesce(net_flow, 0)) over (order bytimestamp) as balancefrom net_flows