Query editor
WITH api_response AS (SELECT http_get('https://query1.finance.yahoo.com/v8/finance/chart/MSTR?interval=1d&range=6y') AS json_data),parsed_chart AS (SELECT json_extract(json_parse(json_data), '$.chart.result[0]') AS chart_dataFROM api_response),arrays AS (SELECTCAST(json_extract(chart_data, '$.timestamp') AS array(bigint)) AS timestamps,CAST(json_extract(chart_data, '$.indicators.quote[0].close') AS array(double)) AS close_pricesFROM parsed_chart)SELECTFROM_UNIXTIME(ts) AS date,close_priceFROM arraysCROSS JOIN UNNEST(timestamps, close_prices)AS t(ts, close_price)WHERE close_price IS NOT NULLORDER BY date DESC