Query editor
selectvault,evt_block_time,amount,SUM(amount) OVER (ORDER BY evt_block_time ROWS BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW) as cumsum ,evt_tx_hashfrom(selectcontract_address as token,"to" as vault,CAST(value AS INT256) as amount,evt_tx_hash, evt_block_timefromerc20_ethereum.evt_Transferwhere"to" = 0x6a2dd3b817f0364e7603e781dda9c62f62c440e1and evt_block_time > date('2022-10-01')and contract_address = 0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48UNION ALLselectcontract_address as token,"from" as vault,-CAST(value AS INT256) as amount,evt_tx_hash, evt_block_timefromerc20_ethereum.evt_Transferwhere"from" = 0x6a2dd3b817f0364e7603e781dda9c62f62c440e1and evt_block_time > date('2022-10-01')and contract_address = 0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48) as t