Query editor
SELECT-- 1. Date: Extracts the Unix timestamp (index 0) and formats itFROM_UNIXTIME(CAST(JSON_EXTRACT_SCALAR(item, '$[0]') AS DOUBLE)) AS datetime,'DEX_TVL' AS data_type,-- 2. TVL: Extracts the value (index 1)CAST(JSON_EXTRACT_SCALAR(item, '$[1]') AS DOUBLE) AS dex_24h_volumeFROMUNNEST(CAST(JSON_EXTRACT(JSON_PARSE(HTTP_GET('https://api.llama.fi/overview/dexs/sui')),'$.totalDataChart') AS ARRAY(JSON))) AS t(item)-- Filter out any null timestamps/data pointsWHERECAST(JSON_EXTRACT_SCALAR(item, '$[0]') AS DOUBLE) IS NOT NULLORDER BYdatetime DESC;