Query editor
-- Title: "Top Markets by Daily Volume Extended (All Chains)"-- Description: "Top markets across StarkNet and Ethereum by daily volume (latest snapshot per chain)."WITH latest_data AS (SELECTchain,market,CAST(openInterest AS DOUBLE) AS openInterest,CAST(dailyVolume AS DOUBLE) AS dailyVolume,CAST(lastPrice AS DOUBLE) AS lastPrice,ROW_NUMBER() OVER (PARTITION BY chain, market ORDER BY fetched_at DESC) AS rnFROM dune.vadymdi.dataset_extended_markets_dataWHERE CAST(openInterest AS DOUBLE) > 0)SELECTmarket AS "Market",chain AS "Chain",ROUND(openInterest, 2) AS "Open Interest",ROUND(dailyVolume, 2) AS "Daily Volume",ROUND(lastPrice, 5) AS "Last Price",ROUND(openInterest * lastPrice, 2) AS "Open Interest USD",CASEWHEN dailyVolume > 0 THEN ROUND(openInterest / dailyVolume, 5)ELSE NULLEND AS "OI to Volume Ratio"FROM latest_dataWHERE rn = 1ORDER BY dailyVolume DESCLIMIT 200;