Skip to main content
This page covers subscribing to market creation and resolution events with subscribe_market_lifecycle, and the marketCreated and marketResolved payloads that subscription delivers.

Subscribing to market lifecycle events

Subscribe to market creation and resolution events by emitting subscribe_market_lifecycle. No authentication required.
marketResolved is also emitted to existing per-market room subscribers automatically (CLOB: market:{slug}, AMM: market:{address}). You don’t need a separate lifecycle subscription to receive resolution events for markets you’re already watching.
To unsubscribe:

Event payloads

marketCreated

Emitted when a new market is funded and visible. Hidden markets are excluded.

marketResolved

Emitted when a market resolves. Sent to both market_lifecycle subscribers and existing market:{slug} room subscribers.
  • WebSocket overview: connection details, handshake authentication, and the full event reference