WS
Chance History
Real-time probability updates and chart history
Use this stream for live probability updates and chart backfill.
Endpoint
wss://chance-history-service.outpoll.com/wsAuthentication
No authentication required.
Message envelope
{
"t": "<TYPE>",
"e": "<EVENT_ID>",
"o": ["<OUTCOME_ID>"],
"d": { ... },
"r": "<ERROR_MESSAGE>"
}Field
Type
Description
t
string
Message type
e
string
Event ID
o
string[]
Outcome IDs
d
object
Message payload
r
string
Error message for failed calls
Subscribe
After subscribe, the server sends:
probabilitywith the latest known valuesuccesswith subscribe confirmation
Live updates
Probability update
History update
Field
Type
Description
d.t
number
Unix timestamp in seconds
d.p
number
Probability from 0.0 to 1.0
Unsubscribe
Success response:
Request history
Supported periods
Code
1s
5s
5M
10M
30M
1H
3H
4H
6H
1d
7d
1m
You can also pass a custom number of seconds as a string.
History response
Each point includes:
Field
Type
Description
t
number
Period end in Unix time
p
number
Close probability value
REST parity
The same history is available over REST:
Python example
Last updated
Was this helpful?

