Skip to main content
GET
/
odds
/
stream
Get a real-time Server-Sent Events stream of odds updates
curl --request GET \
  --url https://api.example.com/odds/stream \
  --header 'Authorization: Bearer <token>' \
  --header 'X-Api-Token: <api-key>'
{
  "id": "<string>",
  "event": "<string>",
  "data": {
    "FixtureId": 123,
    "MessageId": "<string>",
    "Ts": 123,
    "Bookmaker": "<string>",
    "BookmakerId": 123,
    "SuperOddsType": "<string>",
    "InRunning": true,
    "GameState": "<string>",
    "MarketParameters": "<string>",
    "MarketPeriod": "<string>",
    "PriceNames": [
      "<string>"
    ],
    "Prices": [
      123
    ],
    "Pct": [
      "<string>"
    ]
  }
}

Documentation Index

Fetch the complete documentation index at: https://txline-docs.txodds.com/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

User's session JWT.

X-Api-Token
string
header
required

The user's long-lived API token, obtained from the activation endpoint.

Headers

Authorization
string
required

Bearer token for the user's session JWT.

X-Api-Token
string
required

The user's long-lived API token.

Last-Event-ID
string

Optional. The ID of the last event received, to resume the stream.

Query Parameters

fixtureId
integer<int64>

Optional. Filter the event stream for a single fixture ID.

Response

id
string
event
string
data
OddsPayload · object