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/wsAuthentication
No authentication required.
Message envelope
Every message uses the same top-level fields:
{
"t": "<TYPE>",
"e": "<EVENT_ID>",
"d": [...],
"r": "<ERROR_MESSAGE>"
}t
string
Message type
e
string
Event ID
d
array
Outcome price payload
r
string
Error message for failed calls
Message types
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.
o
string
Outcome ID
c
number
Last chance
b
number
Best bid
a
number
Best ask
Python example
Last updated
Was this helpful?

