Channels
Channels
- Ticker channel: Best prices, sizes, and statistics per instrument.
- Trade channel: Public trades.
- Orderbook channel: Order book snapshot and price level changes, up to 10 levels per side.
- Instrument lifecycle channel: Instrument creations and updates.
- Event lifecycle channel: Event creations and updates.
Ticker channel
Current best prices, sizes, and statistics for each subscribed instrument. A frame is sent whenever any field changes. Frametype is ticker.
Example ticker frame:
Trade channel
Public trades, sent immediately after each execution. Frametype is trade.
Example trade frame:
Orderbook channel
Order book depth, up to 10 price levels per side. The server sends anorderbook_snapshot for each subscribed instrument, then orderbook_delta frames. Both frame types carry seq.
Orderbook snapshot
The snapshot is authoritative for the subscription. Replace any local book for that instrument with it.
The snapshot does not carry
ts_ms. A side with no resting bids is an empty array.
Example orderbook snapshot frame:
Orderbook delta
Each delta carries the absolute quantity now resting at one price level. Replace the level with this value; do not add or subtract.
Example orderbook delta frame. The YES level at
0.580 now holds 246.00:
Instrument lifecycle channel
Instrument CREATE and UPDATE changes for all instruments. Deletions are not sent. Frametype is instrument_lifecycle.
Example instrument lifecycle frame:
Event lifecycle channel
Event CREATE and UPDATE changes for all events. Frametype is event_lifecycle.
Example event lifecycle frame:
Lifecycle channels send only changes that occur after you subscribe. To get current state, read it from the REST API first, then subscribe for later changes. Lifecycle frames do not carry
seq.