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.
- Market
Change - Delta update for a single market.
- Market
Data Filter - Market data filter for streaming subscriptions.
- Market
Definition - Full market definition snapshot.
- Market
Subscription - Market subscription request.
- Matched
Order - Matched order (price-size pair), serialized as
[price, size]. - OCM
- Order Change Message (OCM) - order/position updates.
- Order
Filter - Order filter for streaming subscriptions.
- Order
Market Change - Order changes for a single market.
- Order
Runner Change - Order changes for a single runner within a market.
- Order
Subscription - Order subscription request.
- PV
- Price-volume pair, serialized as a JSON array
[price, volume]. - Price
Ladder Definition - Price ladder definition within a market definition.
- RCM
- Race Change Message (RCM) - live GPS tracking data (Total Performance Data).
- Race
Change - Delta update for a single race within an RCM.
- Race
Progress Change - Race-level progress summary.
- Race
Runner Change - GPS tracking data for a single runner.
- Race
Subscription - Race stream subscription request.
- Runner
Change - Delta update for a single runner (selection).
- Runner
Definition - Runner (selection) definition within a market definition.
- Status
- Status response for errors or informational messages.
- Strategy
Match Change - Strategy-level match changes.
- Stream
Heartbeat - Heartbeat request to keep the connection alive.
- Stream
Market Filter - Market filter for streaming subscriptions.
- Unmatched
Order - Unmatched order on the streaming API.
Enums§
- Stream
Message - Top-level streaming message, discriminated by the
opfield.
Functions§
- stream_
decode - Decode a single JSON stream line into a
StreamMessage.