Query editor
withget_balances as (selectday,token_symbol,token_balance_usd,token_balance_ethfromquery_5106203where day <= date_trunc('day', now() - interval '2' hour) -- wait for first refreshand token_balance_usd > 0union allselectday,symbol,value_usd,value_ethfromquery_8333040where day <= date_trunc('day', now() - interval '2' hour) -- wait for first refreshand value_usd > 0),aggregate_balances as (selectday,-- token_symbol,casewhen lower(token_symbol) in ('usdc', 'usdt') then 'Stables'when lower(token_symbol) in ('scr') then 'SCR'when lower(token_symbol) in ('weeth') then 'weETH'when lower(token_symbol) in ('eth', 'weth') then 'WETH'when lower(token_symbol) = 'liquideth' then 'liquidETH'when lower(token_symbol) = 'liquidbtc' then 'liquidBTC'when lower(token_symbol) = 'liquidusd' then 'liquidUSD'when lower(token_symbol) = 'ebtc' then 'eBTC'when lower(token_symbol) = 'liquidrwa' then 'liquidRWA'when lower(token_symbol) in ('eusd', 'ethfi') then 'Other ether.fi Assets'when lower(token_symbol) = 'whype' then 'wHYPE'when lower(token_symbol) = 'behype' then 'beHYPE'when lower(token_symbol) = 'eurc' then 'EURC'when lower(token_symbol) in ('liquidreserve') then 'liquidReserve'else token_symbol-- else 'Other Assets'end as token_class,sum(token_balance_usd) as token_balance_usd,sum(token_balance_eth) as token_balance_ethfromget_balancesgroup by 1, 2)selectday,token_class,token_balance_usd,token_balance_eth