Query editor
SELECTfrom_unixtime(CAST(item['date'] AS double)) AS date,CAST(item['tvl'] AS double) AS tvlFROM UNNEST(CAST(json_parse(HTTP_GET('https://api.llama.fi/v2/historicalChainTvl/sui')) AS ARRAY(MAP(VARCHAR, JSON)))) AS t (item)
Query editor
1SELECT2from_unixtime(CAST(item['date'] AS double)) AS date,3CAST(item['tvl'] AS double) AS tvl4FROM UNNEST(CAST(json_parse(HTTP_GET('https://api.llama.fi/v2/historicalChainTvl/sui')) AS ARRAY(MAP(VARCHAR, JSON)))) AS t (item)