For the complete documentation index, see llms.txt. This page is also available as Markdown.
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/ws

Authentication

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:

  1. probability with the latest known value

  2. success with 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

The first point is an anchor value at or before from. If no data exists in range, the service returns a flat line.

REST parity

The same history is available over REST:

Python example

Last updated

Was this helpful?