Query editor
with sbtb_1 as (select date_trunc('day', evt_block_time) as period, contract_address,'STBT' as symbol,exp(sum(ln(1+cast(interest as double)/cast(cast(newTotalSupply as int256)-interest as double))) over(order by evt_block_time asc)) as pricefrom stbt_index_ethereum.STBT_evt_InterestsDistributedunion allselect period, null as contract_address, 'STBT' as symbol, null as pricefrom unnest(sequence(date'2023-05-15', current_date, interval '1' day)) as t(period)where period not in (select date_trunc('day', evt_block_time) from stbt_index_ethereum.STBT_evt_InterestsDistributed)order by 1 desc),sbtb as (select period, contract_address, symbol, last_value(price) ignore nulls over (order by period asc) as pricefrom sbtb_1),prices as (select *from query_2474657where symbol = 'bIB01'union allselect period, null as contract_address, 'USDM', index as pricefrom query_3050717union allselect period, null as contract_address, 'LTF', pricefrom query_3944208union allselect *from query_1983699where symbol = 'OUSG'union allselect *from query_2414745where symbol = 'TBILL'and period > date'2023-05-10'union allselect *from sbtbwhere symbol = 'STBT'union allselect period, contract_address, 'fUSDC' as symbol, pricefrom query_2012446where contract_address = 0x465a5a630482f3abd6d3b84b39b29b07214d19e5union allselect *from query_2515926union allselect period, contract_address, 'fDAI' as symbol, pricefrom query_2012446where contract_address = 0xe2bA8693cE7474900A045757fe0efCa900F6530bunion allselect period, contract_address, 'fUSDT' as symbol, pricefrom query_2012446where contract_address = 0x81994b9607e06ab3d5cF3AffF9a67374f05F27d7),data as (select period, symbol,price/first_value(price) over (partition by symbol order by period asc)-1 as index,first_value(period) over (partition by symbol order by period asc) as first_valuefrom priceswhere period >= current_date - interval '30' day