Nautilus Trader
A production-grade Rust native trading engine with a deterministic event-driven architecture; the same strategy code is used for both backtesting and live trading.
Introduction
| Branch | Version | Status |
|---|---|---|
master | ||
nightly | ||
develop |
| Platform | Rust | Python |
|---|---|---|
Linux (x86_64) | 1.100.1 | 3.13-3.15 |
Linux (ARM64) | 1.100.1 | 3.13-3.15 |
macOS (ARM64) | 1.100.1 | 3.13-3.15 |
Windows (x86_64) | 1.100.1 | 3.13-3.15 |
- Docs:
- Website:
- Support: [email protected]
Introduction
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.
Features
- Fast: Rust core with the mimalloc allocator and asynchronous networking using tokio.
- Reliable: Type- and thread-safety backed by Rust, with optional Redis-backed state persistence.
- Portable: Runs on Linux, macOS, and Windows. Deploy using Docker.
- Flexible: Modular adapters integrate any REST API or WebSocket feed.
- Advanced: Time in force
IOC,FOK,GTC,GTD,DAY,AT_THE_OPEN,AT_THE_CLOSE, advanced order types and conditional triggers. Execution instructionspost-only,reduce-only, and icebergs. Contingency orders includingOCO,OUO,OTO. - Customizable: User-defined components, or assemble entire systems from scratch using the cache and message bus.
- Backtesting: Multiple venues, instruments, and strategies simultaneously using historical quote tick, trade tick, bar, order book, and custom data with nanosecond resolution.
- Live: Identical strategy implementations between research and live deployment.
- Multi-venue: Run market-making and cross-venue strategies across multiple venues simultaneously.
- AI Training: Engine fast enough to train AI trading agents (RL/ES).
*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.*
Why NautilusTrader?
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.
Integrations
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 available or planned; see docs/integrations/ for details:
| Name | ID | Type | Status | Docs |
|---|---|---|---|---|
| AX Exchange | AX | Derivatives Exchange | Guide | |
| Betfair | BETFAIR | Sports Betting Exchange | Guide | |
| Binance | BINANCE | Crypto Exchange (CEX) | Guide | |
| Blockchain | BLOCKCHAIN | DeFi Data Provider | Guide | |
| Bybit | BYBIT | Crypto Exchange (CEX) | Guide | |
| CoinAPI | COINAPI | Data Provider | 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 | |
| FinFeed | FINFEED | Data Provider | Guide | |
| Hyperliquid | HYPERLIQUID | Crypto Exchange (DEX) | Guide | |
| Interactive Brokers | INTERACTIVE_BROKERS | Brokerage (multi-venue) | Guide | |
| Kalshi | KALSHI | Prediction Market (CEX) | 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 |
- ID: The default client ID for the integrations adapter clients.
- Type: The type of integration (often the venue type).
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.
Status
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.
Roadmap
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. Additional external integrations (such as databases, cloud services, and monitoring tools) are also out of scope unless explicitly listed in the open-source scope.
New integration proposals within the open-source scope should start with an RFC issue to discuss suitability before submitting a PR. See Community-contributed integrations for guidelines.
Security
Security is a priority for the NautilusTrader project. We apply security controls across dependency selection, development, builds, and releases.
- Rust dependencies come only from crates.io; lock files pin dependencies with cryptographic checksums.
- New dependency and tooling versions observe a publication cooldown before adoption.
- Third-party Python packages install from wheels only.
cargo-vetaudits Rust dependency provenance.cargo-denyenforces a license allow list compatible withLGPL-3.0-only.- TLS and most runtime cryptography use AWS-LC through Rust's aws-lc-rs.
- Ed25519 signing uses ed25519-dalek.
- Gitleaks screens for secrets and Zizmor audits GitHub Actions at pre-commit.
- CODEOWNERS require review of critical infrastructure, dependency manifests, and lock files.
- Protected branches require signed commits and passing CI.
- CodeQL runs on release PRs to
masterand pushes tonightly. - Audit-relevant PRs and daily audits run
cargo-audit,cargo-deny, andcargo-vet. - OSV Scanner and
pip-auditalso run on audit-relevant PRs and daily. cargo-fuzztargets cover selected adapter and signing surfaces.- GitHub Actions are pinned to commit SHAs; hardened CI runners restrict network egress to an allow list.
- Python artifacts carry SLSA build provenance.
- Container images are Sigstore-signed with attested SPDX SBOMs.
- PyPI and crates.io use OIDC Trusted Publishing through a protected
releaseenvironment. - The
releaseenvironment never runs PR or fork code. - Release tags are immutable.
OpenSSF Scorecard provides an automated repository-health signal alongside manual review, CI hardening, and security audits.
Reporting a vulnerability
Report privately through GitHub Security Advisories or email (PGP key available on request).
- We acknowledge reports within 48 hours and patch critical vulnerabilities within 30 days.
- We thank and credit reporters in the relevant advisory and release notes unless they prefer anonymity.
See the following for details:
- Security Policy: scope, coordinated disclosure, and step-by-step release verification.
- Security Architecture: the release supply chain from build to publication.
- Responsible Disclosure: full disclosure policy.
- Supply Chain Security: full supply chain policy.
- CI/CD security: GitHub Actions security controls.
Versioning and releases
[!WARNING] NautilusTrader is still under active development. Some features may be incomplete, and while the API is becoming more stable, breaking changes can occur between releases. We strive to document these changes in the release notes on a best-effort basis.
We aim to follow a bi-weekly release schedule, though experimental or larger features may cause delays.
Branches
We aim to maintain a stable, passing build across all branches.
master: Reflects the source code for the latest released version; recommended for production use.nightly: Daily snapshots of thedevelopbranch for early testing; merged at 14:00 UTC and as required.develop: Active development branch for contributors and feature work.
[!NOTE] The v2 release-candidate line is the transition toward a stable API for version 2.x. Once this milestone is reached, we plan to implement a formal deprecation process for any API changes. This approach allows us to maintain a rapid development pace for now.
Precision mode
NautilusTrader supports two precision modes for its core value types (Price, Quantity, Money), which differ in their internal bit-width and maximum decimal precision.
- High-precision: 128-bit integers with up to 16 decimals of precision, and a larger value range.
- Standard-precision: 64-bit integers with up to 9 decimals of precision, and a smaller value range. <