For the complete documentation index, see llms.txt. This page is also available as Markdown.

Order Book

Real-time best bid, best ask, and last chance updates

Use this stream for live order book updates by event.

Endpoint

wss://order-book.outpoll.com/event/ws

Authentication

No authentication required.

Message envelope

Every message uses the same top-level fields:

{
  "t": "<TYPE>",
  "e": "<EVENT_ID>",
  "d": [...],
  "r": "<ERROR_MESSAGE>"
}
Field
Type
Description

t

string

Message type

e

string

Event ID

d

array

Outcome price payload

r

string

Error message for failed calls

Message types

Type
Direction
Description

SUBSCRIBE

Client

Subscribe to one event

SUBSCRIBED

Server

Subscription confirmed

UNSUBSCRIBE

Client

Remove one subscription

UNSUBSCRIBED

Server

Unsubscribe confirmed

REQUEST_DATA

Client

Request a full snapshot

PRICES_DATA

Server

Full price snapshot

PRICES_DATA_DELTA

Server

Incremental price update

PING

Server

Heartbeat

ERROR

Server

Request error

Subscribe

Server confirmation:

Price payload

PRICES_DATA sends the current state.

PRICES_DATA_DELTA sends only changed outcomes.

Field
Type
Description

o

string

Outcome ID

c

number

Last chance

b

number

Best bid

a

number

Best ask

Python example

Last updated

Was this helpful?