Query editor
-- Monthly notional volume by market group, Polymarket + Kalshi (partial current month excluded)-- Classifier: https://dune.com/queries/9226505 · Volume is notional (contracts x $1 payout, each trade counted once)with mk as (select venue, market_id, market_groupfrom query_9226505where not looks_like_price_market)selectdate_trunc('month', o.hour) as month,mk.market_group,sum(o.volume_contracts) as volume_notional_usd,count(distinct o.market_id) filter (where not o.is_forward_filled) as markets_tradedfrom 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'and o.hour < cast(date_trunc('month', current_date) as timestamp)group by 1, 2order by 1, 2