Production-grade Rust-native trading engine with deterministic event-driven architecture
Production-grade Rust-native trading engine with deterministic event-driven architecture
| Branch | Version | Status |
|---|---|---|
master |
||
nightly |
||
develop |
| Platform | Rust | Python |
|---|---|---|
Linux (x86_64) |
1.98.1 | 3.12-3.14 |
Linux (ARM64) |
1.98.1 | 3.12-3.14 |
macOS (ARM64) |
1.98.1 | 3.12-3.14 |
Windows (x86_64) |
1.98.1 | 3.12-3.14 |
NautilusTrader is an open-source, production-grade, Rust-native engine for multi-asset, multi-venue trading systems.
The system spans research, deterministic simulation, and live execution within a single event-driven architecture, with Python serving as the control plane for strategy logic, configuration, and orchestration.
This separation provides the performance and safety of a compiled trading engine with the flexibility of Python for system composition and strategy development. Trading systems can also be written entirely in Rust for mission-critical workloads.
The same strategy and execution-algorithm code can run across backtest and live systems, reducing deployment divergence. Live execution still introduces venue, transport, timing, persistence, external-activity, and reconciliation behavior that a simulation may not reproduce. See Backtest and live differences.
NautilusTrader is asset-class-agnostic. Any venue with a REST API or WebSocket feed can be integrated through modular adapters. Current integrations span crypto exchanges (CEX and DEX), traditional markets (FX, equities, futures, options), and betting exchanges.
IOC, FOK, GTC, GTD, DAY, AT_THE_OPEN, AT_THE_CLOSE, advanced order types and conditional triggers. Execution instructions post-only, reduce-only, and icebergs. Contingency orders including OCO, OUO, OTO.nautilus - from ancient Greek 'sailor' and naus 'ship'.
The nautilus shell consists of modular chambers with a growth factor which approximates a logarithmic spiral. The idea is that this can be translated to the aesthetics of design and architecture.
Trading strategy research is often conducted in Python using vectorized approaches, while production trading systems are implemented separately using event-driven architectures in compiled languages.
NautilusTrader removes this separation.
A Rust-native core provides a deterministic event-driven runtime for both research and live execution, while Python serves as the control plane. The same architecture, execution semantics, and time model operate across both environments, allowing strategies to move from research to production without reimplementation.
Python bindings are provided via PyO3 for the Rust-native v2 runtime.
During the v2 transition, v1 receives only critical security backports on the develop_v1 branch.
See the v2 migration guide for migration steps and compatibility details.
No Rust toolchain is required to install prebuilt wheels.
This project makes the Soundness Pledge:
"The intent of this project is to be free of soundness bugs. The developers will do their best to avoid them, and welcome help in analyzing and fixing them."
[!NOTE]
MSRV: NautilusTrader relies heavily on improvements in the Rust language and compiler. As a result, the Minimum Supported Rust Version (MSRV) is generally equal to the latest stable release of Rust.
NautilusTrader is modularly designed to work with adapters, enabling connectivity to trading venues and data providers by translating their raw APIs into a unified interface and normalized domain model.
The following integrations are currently supported; see docs/integrations/ for details:
| Name | ID | Type | Status | Docs |
|---|---|---|---|---|
| AX Exchange | AX |
Perpetuals Exchange | Guide | |
| Betfair | BETFAIR |
Sports Betting Exchange | Guide | |
| Binance | BINANCE |
Crypto Exchange (CEX) | Guide | |
| BitMEX | BITMEX |
Crypto Exchange (CEX) | Guide | |
| Bybit | BYBIT |
Crypto Exchange (CEX) | Guide | |
| Coinbase | COINBASE |
Crypto Exchange (CEX) | Guide | |
| Databento | DATABENTO |
Data Provider | Guide | |
| Deribit | DERIBIT |
Crypto Exchange (CEX) | Guide | |
| Derive | DERIVE |
Crypto Exchange (DEX) | Guide | |
| dYdX | DYDX |
Crypto Exchange (DEX) | Guide | |
| Hyperliquid | HYPERLIQUID |
Crypto Exchange (DEX) | Guide | |
| Interactive Brokers | INTERACTIVE_BROKERS |
Brokerage (multi-venue) | Guide | |
| Kraken | KRAKEN |
Crypto Exchange (CEX) | Guide | |
| Lighter | LIGHTER |
Crypto Exchange (DEX) | Guide | |
| Lighter on Robinhood | LIGHTER_ROBINHOOD |
Crypto Exchange (DEX) | Guide | |
| OKX | OKX |
Crypto Exchange (CEX) | Guide | |
| Polymarket | POLYMARKET |
Prediction Market (DEX) | Guide | |
| Tardis | TARDIS |
Crypto Data Provider | Guide |
For Lighter on Robinhood, LIGHTER_ROBINHOOD is the venue and explicit client ID to register. The
shared Lighter factory keeps LIGHTER as its compatibility default.
planned: Planned for future development.building: Under construction and likely not in a usable state.beta: Completed to a minimally working state and in a beta testing phase.stable: Stabilized feature set and API, the integration has been tested by both developers and users to a reasonable level (some bugs may still remain).See the Integrations documentation for further details.
The Roadmap outlines NautilusTrader's strategic direction. Current priorities include stabilizing the Rust-native core, improving documentation, and enhancing code ergonomics.
The open-source project focuses on single-node backtesting and live trading for individual and small-team quantitative traders. UI dashboards, distributed orchestration, and built-in AI/ML tooling are out of scope to maintain focus on the core engine and ecosystem sustainability.
New integration proposals should start with an RFC issue to discuss suitability before submitting a PR. See Community-contributed integrations for guidelines.
Security is a priority for the NautilusTrader project, and we value the work of those who help identify and resolve vulnerabilities. We apply layered controls across the development and release lifecycle, with signed releases, continuous vulnerability management, and transparent development practices:
BacktestEngine.reset() then run() logs 'Invalid state trigger READY -> INITIALIZE' and skips ts_started
Portfolio missing_price_instruments stays stale when positions exist before the first AccountState
[Kraken] Scoped reads compare the wrong pair spelling, and one asset carries up to three currency codes
Emulated orders on rc6: first order ignores the cached quote, and RiskEngine checks are skipped
Interactive Brokers: a replayed execution is dropped when the instrument provider has not yet loaded its instrument
RiskEngine admits buys that together exceed a cash account's free balance
[Bybit] Add public all-liquidation custom data subscription
[Interactive Brokers] Account values outside the fixed reqAccountSummary tag list are unreachable
[Interactive Brokers] `generate_fill_reports` sends the prefixed `AccountId` as the execution filter's account code: rejects with error 321
[Interactive Brokers] Execution callback can lose submitted client_order_id mapping and materialize duplicate reconciliation order