Query editor
with fUSDT as (select evt_block_time, cast(value as double) as quantityfrom erc20_arbitrum.evt_Transferwhere contract_address = 0xC9FA90D24B7103Ad2215DE52afec5e1E4C7a6e62),fUSDC as (select evt_block_time, cast(value as double) as quantityfrom erc20_arbitrum.evt_Transferwhere contract_address = 0x4CFA50B7Ce747e2D61724fcAc57f24B748FF2b2A),fDAI as (select evt_block_time, cast(value as double) as quantityfrom erc20_arbitrum.evt_Transferwhere contract_address = 0x1b40e7812E75D02Eef97E4399c33865D2Ff5952b)select date_trunc('day', evt_block_time) as day, token, round(sum(quantity / POW(10, decimals)) , 2) as volumefrom (select *, 'fUSDT' as token, 6 decimals from fUSDTunion allselect *, 'fUSDC' as token, 6 as decimals from fUSDCunion allselect *, 'fDAI' as token, 18 as decimals from fDAI)group by date_trunc('day', evt_block_time), tokenorder by day desc, token