Skip to main content

Module messages

Module messages 

Source
Expand description

Betfair Exchange Stream API message definitions.

The stream protocol uses newline-delimited JSON with an op field to discriminate message types. Field names are abbreviated for bandwidth efficiency (e.g. pt for publish time, mc for market changes).

§References

https://docs.developer.betfair.com/display/1smk3cen4v3lu3yomq5qye0ni/Exchange+Stream+API

Structs§

Authentication
Authentication request sent on stream connect.
Connection
Connection confirmation sent on stream connect.
Jump
Jump obstacle location data.
LPV
Level-price-volume triple, serialized as a JSON array [level, price, volume].
MCM
Market Change Message (MCM) - price/market data updates.
MarketChange
Delta update for a single market.
MarketDataFilter
Market data filter for streaming subscriptions.
MarketDefinition
Full market definition snapshot.
MarketSubscription
Market subscription request.
MatchedOrder
Matched order (price-size pair), serialized as [price, size].
OCM
Order Change Message (OCM) - order/position updates.
OrderFilter
Order filter for streaming subscriptions.
OrderMarketChange
Order changes for a single market.
OrderRunnerChange
Order changes for a single runner within a market.
OrderSubscription
Order subscription request.
PV
Price-volume pair, serialized as a JSON array [price, volume].
PriceLadderDefinition
Price ladder definition within a market definition.
RCM
Race Change Message (RCM) - live GPS tracking data (Total Performance Data).
RaceChange
Delta update for a single race within an RCM.
RaceProgressChange
Race-level progress summary.
RaceRunnerChange
GPS tracking data for a single runner.
RaceSubscription
Race stream subscription request.
RunnerChange
Delta update for a single runner (selection).
RunnerDefinition
Runner (selection) definition within a market definition.
Status
Status response for errors or informational messages.
StrategyMatchChange
Strategy-level match changes.
StreamHeartbeat
Heartbeat request to keep the connection alive.
StreamMarketFilter
Market filter for streaming subscriptions.
UnmatchedOrder
Unmatched order on the streaming API.

Enums§

StreamMessage
Top-level streaming message, discriminated by the op field.

Functions§

stream_decode
Decode a single JSON stream line into a StreamMessage.