Skip to main content
The Market Data WebSocket provides live updates for a specific market, including price changes, volume updates, and state transitions.

Connection

string
required
The market address to subscribe to.

Message Types

Server Messages

Sent immediately on connection with full market data.

Client Messages

Change the data interval.
Valid intervals: 1s, 1m, 5m, 15m, 1h, 4h, 1d

Connection Example


Data Points

Each update and history point contains:

Gap Filling

Historical data is automatically gap-filled:
  • Missing intervals are filled with the last known values
  • Data extends forward to the current blockchain time
  • Maximum of 60 data points returned

Timeouts

Send periodic pings to keep the connection alive.