Query editor
with solana_chain_tvl as (selectfrom_unixtime(cast(item['date'] as double)) as date,cast(item['tvl'] as double) as solana_tvlfrom unnest(cast(json_parse(http_get('https://api.llama.fi/v2/historicalChainTvl/Solana')) as array(map(varchar, json)))) as t (item)order by date desc),marinade_tvl as (with raw_data as (selectjson_parse(http_get('https://api.llama.fi/protocol/marinade')) as data),historical as (selectjson_extract(data, '$.tvl') as tvl_arrayfrom raw_data),unnested as (selectcast(item as json) as tvl_itemfrom historicalcross join unnest(cast(tvl_array as array(json))) as t(item))selectfrom_unixtime(try_cast(json_extract_scalar(tvl_item, '$.date') as double)) as date,cast(json_extract_scalar(tvl_item, '$.totalLiquidityUSD') as double) as marinade_tvlfrom unnestedorder by date desc),jupiter_tvl as (with raw_data as (selectjson_parse(http_get('https://api.llama.fi/protocol/Jupiter')) as data),historical as (selectjson_extract(data, '$.tvl') as tvl_arrayfrom raw_data),unnested as (selectcast(item as json) as tvl_itemfrom historicalcross join unnest(cast(tvl_array as array(json))) as t(item))selectfrom_unixtime(try_cast(json_extract_scalar(tvl_item, '$.date') as double)) as date,cast(json_extract_scalar(tvl_item, '$.totalLiquidityUSD') as double) as jupiter_tvlfrom unnestedorder by date desc