Query editor
with response as (selecthttp_post ('https://api.hyperliquid.xyz/info', '{"type": "metaAndAssetCtxs"}', array['Content-Type: application/json']) as hyperliquid_data)select-- meta columns from the first json object (universe)json_extract(meta, '$.szDecimals') as sz_decimals, json_extract(meta, '$.name') as name, json_extract(meta, '$.maxLeverage') as max_leverage, json_extract(meta, '$.isDelisted') as is_delisted, json_extract(meta, '$.onlyIsolated') as only_isolated-- asset columns from the second json object, json_extract(asset, '$.funding') as funding, json_extract(asset, '$.openInterest') as open_interest, json_extract(asset, '$.prevDayPx') as prev_day_px, json_extract(asset, '$.dayNtlVlm') as day_ntl_vlm, json_extract(asset, '$.premium') as premium, json_extract(asset, '$.oraclePx') as oracle_px, json_extract(asset, '$.markPx') as mark_px, json_extract(asset, '$.midPx') as mid_px, json_extract(asset, '$.impactPxs') as impact_pxs, json_extract(asset, '$.dayBaseVlm') as day_base_vlmfrom response, unnest(cast(json_extract(hyperliquid_data, '$[0].universe') as array(json)), cast(json_extract(hyperliquid_data, '$[1]') as array(json))) as t(meta, asset);