Expand description
NautilusTrader adapter for the Betfair betting exchange.
The nautilus-betfair crate connects Betfair market data and order execution to NautilusTrader.
It includes REST and streaming clients, instrument discovery, and historical file loading for
backtesting, with shared protocol models and live-node factories.
The official Betfair API reference can be found at https://docs.developer.betfair.com/.
§NautilusTrader
NautilusTrader is an open-source, production-grade, Rust-native trading engine with a deterministic, event-driven architecture for multi-asset, multi-venue systems.
The system spans research, simulation, and live execution, providing research-to-live semantic parity.
§Naming Conventions
Betfair’s API uses British English spelling. This crate preserves those
spellings in type names, method strings, and fixture files, e.g.
MarketCatalogue / listMarketCatalogue, not “catalog”.
§Feature Flags
Feature flags control code inclusion for Rust builds and Python bindings:
arrow: Enables Apache Arrow data support.examples: Enables the crate’s example binaries.extension-module: Builds as a Python extension module.high-precision: Enables high-precision mode to use 128-bit value types.python: Enables Python bindings from PyO3.
§Documentation
Modules§
- common
- Common types, enumerations, and constants for the Betfair adapter.
- config
- Configuration structures for the Betfair adapter.
- data
- Live market data client for the Betfair adapter.
- data_
types - Betfair-specific custom data types.
- execution
- Live execution client for the Betfair adapter.
- factories
- Factory functions for creating Betfair clients and components.
- http
- Betfair REST/JSON-RPC API model types.
- loader
- File-based loader for historical Betfair Exchange Streaming data.
- provider
- Betfair instrument provider for loading instruments from the Navigation and Betting APIs.
- python
- Python bindings for the Betfair adapter.
- stream
- Betfair Exchange Stream API client and message types.