How AI is applied across API Evangelist and APIs.io. Read my AI disclosure →
API Evangelist API Evangelist
Discovery
Learnings
Guidance
Toolbox
Alignment
API Evangelist LLC

Betfair Exchange Stream API

Low-latency, subscription-based push of market and order changes over a persistent raw SSL/TCP socket to stream-api.betfair.com:443. The protocol is CRLF-delimited JSON (one JSON message per line) - NOT WebSocket; attempted WebSocket connections are refused. Clients authenticate then send marketSubscription / orderSubscription requests and receive market change (mcm) and order change (ocm) messages plus connection, status, and heartbeat frames.

Betfair Exchange Stream API is one of 7 APIs that Betfair publishes on the APIs.io network, described by an AsyncAPI event-driven specification.

Tagged areas include Streaming, Real-Time, Market Data, and TCP. The published artifact set on APIs.io includes API documentation and an AsyncAPI specification.

This event API exposes 8 operations across 8 channels, and defines 8 schemas. It is described by AsyncAPI 2.6.0, at version 1.0.0.

The API connects through 2 servers: stream-api.betfair.com:443 (secure-tcp), stream-api-integration.betfair.com:443 (secure-tcp).

8 operations 8 channels 8 schemas

Metadata

The identity and technical contract details declared by the specification.

Specification
AsyncAPI 2.6.0
API Version
1.0.0
Base URL
tcp+ssl://stream-api.betfair.com:443
Resource Areas
1

Channels & Operations 8

Across 8 channels, the API surfaces 8 operations. Each is listed below with its action, channel, parameters, and response codes.

Channels 8
PUB
authentication
Authenticate the stream connection.
sendAuthentication body
PUB
marketSubscription
Subscribe to market changes.
sendMarketSubscription body
PUB
orderSubscription
Subscribe to order changes.
sendOrderSubscription body
PUB
heartbeatRequest
Send a keep-alive heartbeat request.
sendHeartbeat body
SUB
connectionStream
Receive the initial connection frame.
receiveConnection body
SUB
statusStream
Receive status / acknowledgement frames.
receiveStatus body
SUB
marketChangeStream
Receive market change messages.
receiveMarketChange body
SUB
orderChangeStream
Receive order change messages.
receiveOrderChange body

Messages & Schemas 8

The contract defines 8 schemas that model the data carried by its messages. Each schema is shown below with its type and property counts.

AuthenticationMessage
message
Authenticates the socket with appKey + session token.
MarketSubscriptionMessage
message
OrderSubscriptionMessage
message
HeartbeatRequestMessage
message
ConnectionMessage
message
StatusMessage
message
MarketChangeMessage
message
Push of market price/status deltas.
OrderChangeMessage
message
Push of the customer's order/matched deltas.

Specification

The full machine-readable AsyncAPI contract behind this narrative.

Source

betfair-asyncapi.yml Raw ↑

Other APIs Betfair publishes across the network.

Betfair Vendor API
Betfair Accounts API
Betfair Betting API
Betfair Heartbeat API
Betfair Historic Data API
Betfair Identity API
Where this information came from

This is an independent, third-party profile of Betfair Exchange Stream API, published by API Evangelist. We do not operate, host, resell, or support these APIs, and we are not affiliated with or endorsed by the company unless stated above. Everything here is built from publicly available information — the company's own site, developer portal, documentation, public repositories, and the specifications it publishes for public use. Nothing is obtained by breaching a system, defeating an access control, or using credentials.

The Kin Score and Agent Readiness rating are independently calculated assessments of a company's public API artifacts, scored against a published rubric. They are not certifications, endorsements, security assessments, or audits.

Corrections, re-scores, and removal are free — no partnership or purchase required, and you do not need to justify the request. A removed company is recorded as unrated, never scored zero for having asked. Acknowledgement within one business day; removal within two.

info@apievangelist.com · Read the full data-sourcing policy →
On a security or compliance team? Put security in the subject line and you will get a person, not a form — we will tell you exactly which public URLs this profile was built from.