Query editor
-- 01 · Market universe: every classified market with lifetime notional volume and last traded price-- Reads the classifier: https://dune.com/queries/9226505-- Volume basis: NOTIONAL USD (contracts x $1 payout, each trade counted once). Cash volume is an add-on column.with mk as (select * from query_9226505),vol as (selecto.venue,o.market_id,sum(o.volume_contracts) as volume_notional_usd,sum(case when o.vwap between 0.10 and 0.90 then o.volume_contracts end) as volume_notional_10_90c_usd,sum(o.volume_usd) as volume_cash_usd,sum(o.trade_count) as trade_count,min(o.hour) filter (where not o.is_forward_filled) as first_trade_hour,max(o.hour) filter (where not o.is_forward_filled) as last_trade_hour,max_by(o.close, o.hour) filter (where not o.is_forward_filled) as last_traded_prob_yesfrom prediction_markets.ohlcv_hourly ojoin mk on mk.venue = o.venue and mk.market_id = o.market_idwhere o.block_month >= date '2022-01-01'group by 1, 2)selectmk.theme, mk.sub_theme, mk.venue, mk.question, mk.event_name, mk.yes_outcome_name,mk.status, mk.resolved_outcome, mk.market_start_time, mk.settlement_ts,coalesce(v.volume_notional_usd, 0) as volume_notional_usd,v.volume_notional_10_90c_usd,v.volume_cash_usd,v.trade_count, v.first_trade_hour, v.last_trade_hour, v.last_traded_prob_yes,mk.looks_like_price_market, mk.has_ai, mk.has_math, mk.has_crypto_break, mk.has_quantum,mk.category_native, mk.link, mk.market_id, mk.event_id, mk.series_idfrom mkleft join vol v on v.venue = mk.venue and v.market_id = mk.market_idorder by volume_notional_usd desc