Prediction Hunt/ API
WebSockets / Channels / Market Lifecycle

Market Lifecycle

WS·market_lifecycle·Pro Tier+·PolymarketKalshiOpinionPredictItProphetXPredict.fun

Events when markets are created or resolved and when match groups are created or updated. Optionally subscribe to everything with a wildcard subscription.

Overview

Use case: Keep catalogs and UIs in sync with new markets and settlements.

Requirements

  • Pro or Enterprise API key.
  • Subscribe with market_ids and/or group_ids, or omit both to receive all lifecycle events (wildcard).
  • Wildcard still counts toward your tier subscription limits.

Send

FieldTypeRequiredNotes
actionstringyesMust be "subscribe" for this section.
channelstringyesMust be "market_lifecycle".
market_idsstring[]optionalMarket scope; can be combined with group_ids.
group_idsnumber[]optionalGroup scope; expands to markets linked to each group.
wildcardbehavioroptionalOmit both market_ids and group_ids to receive all channel events.

Receive

Data messages use the standard envelope: channel, type, ts, data. Types for this channel include: market_created, market_resolved, group_created, group_updated.

Data fields (inside data)

FieldTypeDescription
typestringmarket_created, market_resolved, group_created, group_updated, etc.
market_idstring?When applicable.
sourcestring?Venue.
group_idnumber?Match group when applicable.
titlestring?Human-readable title when provided.
resolutionstring?On resolution events when provided.