Query editor
-- 06 · Live snapshot: open markets today, current price, 30-day move, recent notional volume, open interest-- Reads the classifier: https://dune.com/queries/9226505-- Open interest = Yes contracts outstanding; each pays $1, so it reads as USD at payout.with mk as (select theme, sub_theme, venue, market_id, question, market_end_time, linkfrom query_9226505where status = 'active'and not looks_like_price_market),px as (selecto.venue, o.market_id,max_by(o.close, o.hour) filter (where not o.is_forward_filled) as last_traded_prob_yes,max(o.hour) filter (where not o.is_forward_filled) as last_trade_hour,max_by(o.close, o.hour) filter (where o.hour < cast(current_timestamp - interval '30' day as timestamp) and not o.is_forward_filled)as prob_yes_30d_ago,sum(o.volume_contracts) filter (where o.hour >= cast(current_timestamp - interval '7' day as timestamp)) as volume_notional_7d_usd,sum(o.volume_contracts) filter (where o.hour >= cast(current_timestamp - interval '30' day as timestamp)) as volume_notional_30d_usdfrom prediction_markets.ohlcv_hourly ojoin mk on mk.venue = o.venue and mk.market_id = o.market_idwhere o.block_month >= date_trunc('month', current_date - interval '120' day)group by 1, 2),oi as (selecti.venue, i.market_id,max_by(i.market_oi_yes_contracts, i.hour) as open_interest_contractsfrom prediction_markets.open_interest_hourly_v2 ijoin mk on mk.venue = i.venue and mk.market_id = i.market_idwhere i.block_month >= date_trunc('month', current_date - interval '35' day)group by 1, 2)selectmk.theme, mk.sub_theme, mk.venue, mk.question,px.last_traded_prob_yes, px.prob_yes_30d_ago,px.last_traded_prob_yes - px.prob_yes_30d_ago as prob_change_30d,px.last_trade_hour,px.volume_notional_7d_usd, px.volume_notional_30d_usd,oi.open_interest_contracts,mk.market_end_time, mk.link, mk.market_idfrom mkleft join px on px.venue = mk.venue and px.market_id = mk.market_idleft join oi on oi.venue = mk.venue and oi.market_id = mk.market_idorder by coalesce(px.volume_notional_30d_usd, 0) desc