Query editor
-- Monthly notional volume across the three venues driving the prediction-market / perps convergence.-- Hyperliquid: perp notional volume (USD), from market_data rolling 24h, sampled at last snapshot per coin per day, then summed by month-- Polymarket: taker-side notional = shares traded when taker is one of the four CLOB exchange addresses (V1 + V2)-- V2 cutover was 2026-04-28; both eras flow through the same curated `market_trades` spell.-- (methodology per dune.com/queries/6899861 — shares are the $1-settled notional unit)-- V1 CTF Exchange: 0x4bfb41d5b3570defd03c39a9a4d8de6bd8b8982e-- V1 NegRisk Exchange: 0xc5d563a36ae78145c45a50134d48a1215220f80a-- V2 CTF Exchange: 0xe111180000d2663c0091e4f400237545b87b996b-- V2 NegRisk Exchange: 0xe2222d279d744050d28e00520010520000310f59-- Kalshi: contracts traded per day, summed across markets (contracts settle to $1, so contracts ≈ $ notional), aggregated by month-- Analysis window: 2024-10 through 2026-04 (last full month). May 2026 is partial and excluded.WITHhl_ranked AS (SELECTDATE(time) AS day,coin,day_ntl_vlm,ROW_NUMBER() OVER (PARTITION BY DATE(time), coin ORDER BY time DESC) AS rnFROM hyperliquid.market_dataWHERE time >= TIMESTAMP '2024-10-01'AND time < TIMESTAMP '2026-05-01'AND day_ntl_vlm IS NOT NULL),hl_daily AS (SELECT day, SUM(day_ntl_vlm) AS volume_usdFROM hl_rankedWHERE rn = 1GROUP BY 1),hyperliquid_monthly AS (SELECTDATE_TRUNC('month', day) AS month,SUM(volume_usd) AS volume_usdFROM hl_dailyGROUP BY 1),polymarket_monthly AS (SELECTDATE_TRUNC('month', block_time) AS month,SUM(CASEWHEN taker IN (0x4bfb41d5b3570defd03c39a9a4d8de6bd8b8982e,0xc5d563a36ae78145c45a50134d48a1215220f80a,0xe111180000d2663c0091e4f400237545b87b996b,0xe2222d279d744050d28e00520010520000310f59) THEN sharesELSE NULLEND) AS volume_usdFROM polymarket_polygon.market_tradesWHERE block_month >= DATE '2024-10-01'AND block_time >= TIMESTAMP '2024-10-01'AND block_time < TIMESTAMP '2026-05-01'GROUP BY 1),kalshi_monthly AS (SELECTDATE_TRUNC('month', _date) AS month,SUM(daily_volume) AS volume_usdFROM kalshi.market_reportWHERE _date >= DATE '2024-10-01'