nautilus_trader
Production-grade Rust-native trading engine with deterministic event-driven architecture
What it is and what it does
NautilusTrader bridges research and production trading by providing a single Rust-native event-driven runtime that executes strategies identically in both backtesting and live environments. Python serves as the control plane for strategy logic, configuration, and orchestration, while the Rust core handles deterministic execution, order management, and multi-venue coordination. The system supports research workflows using historical tick, bar, and order-book data at nanosecond resolution, then deploys the same strategy code to live trading without reimplementation.
The engine is asset-class-agnostic and connects to any venue via modular REST or WebSocket adapters. It includes advanced order types (IOC, FOK, GTC, GTD, DAY, AT_THE_OPEN, AT_THE_CLOSE), contingency orders (OCO, OUO, OTO), execution instructions (post-only, reduce-only, icebergs), and multi-venue market-making. The Rust core provides type and thread safety, optional Redis-backed persistence, and performance sufficient for AI agent training. Python bindings are provided via PyO3; the legacy Cython v1 core remains supported during the v2 release-candidate phase.
Use it for:
- Backtest multi-venue strategies on historical tick and bar data, then deploy the same code live without code changes
- Build market-making or cross-venue arbitrage strategies that coordinate orders across multiple exchanges simultaneously
- Train reinforcement learning or evolutionary strategy agents using the engine's fast deterministic runtime
- Integrate custom adapters for new venues or data providers via the modular adapter interface
- Run production trading systems with Redis-backed state persistence and type-safe Rust execution
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
NautilusTrader is a Rust-native event-driven trading engine that runs research backtests and live trading strategies using the same deterministic code, with Python as the control plane for strategy logic.
Yes, with conditions. NautilusTrader is worth installing if you need research-to-production parity in algorithmic trading and are comfortable with Python 3.12–3.14 and LGPL-3.0-or-later licensing. Active maintenance, no known vulnerabilities, and broad platform support make it production-ready. The medium install friction (11 dependencies, compiled wheels) is typical for data-heavy trading systems. Not suitable if you require Python <3.12 or cannot accept copyleft licensing on library modifications.
Install
nautilus-trader on PyPI
pip
pip install nautilus-traderuv
uv add nautilus-traderpoetry
poetry add nautilus-traderInstalling nautilus_trader
Before you install
Medium install friction: compiled wheels available for Python 3.12–3.14 across Linux (x86_64, ARM64), macOS (ARM64), and Windows (x86_64). Active maintenance with latest release 12 days old and 25494 repository stars. Requires 11 runtime dependencies including numpy, pandas, pyarrow, and uvloop.
License in practice
Licensed under LGPL-3.0-or-later (copyleft). Any modifications to the library itself must be shared under the same license; applications using it as a dependency are not restricted, but redistribution of modified library code requires source disclosure.
Quickstart
pip install nautilus-trader
from nautilus_trader.trading.strategy import Strategy
from nautilus_trader.core.data import Bar
# Define strategy logic in Python; engine handles execution deterministically
Requires Python 3.12–3.14; Rust 1.97.1 is used internally but not required at install time. PyO3 bindings wrap the Rust v2 runtime.
Verify before relying
- Specific performance benchmarks (latency, throughput) for live execution vs. backtesting
- Details on supported order types beyond IOC, FOK, GTC, GTD, DAY, AT_THE_OPEN, AT_THE_CLOSE
- Current list of production-ready venue adapters and their stability status
- Persistence and recovery semantics when using optional Redis-backed state
Package facts
| License | LGPL-3.0-or-later (copyleft) |
| Python support | supports the current Python release (<3.15,>=3.12) |
| Install friction | medium — platform-specific wheel |
| Runtime dependencies | 11 — click, fsspec, msgspec, numpy, pandas, portion, pyarrow, pytz, tqdm, tzdata, uvloop |
| Maintenance | actively maintained — 12 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 253,604/month — #8,514 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: nautilus_trader-1.231.0-cp312-cp312-macosx_26_0_arm64.whl; nautilus_trader-1.231.0-cp312-cp312-manylinux_2_35_aarch64.whl; nautilus_trader-1.231.0-cp312-cp312-manylinux_2_35_x86_64.whl; nautilus_trader-1.231.0-cp312-cp312-win_amd64.whl; nautilus_trader-1.231.0-cp313-cp313-macosx_26_0_arm64.whl; nautilus_trader-1.231.0-cp313-cp313-manylinux_2_35_aarch64.whl; nautilus_trader-1.231.0-cp313-cp313-manylinux_2_35_x86_64.whl; nautilus_trader-1.231.0-cp313-cp313-win_amd64.whl; nautilus_trader-1.231.0-cp314-cp314-macosx_26_0_arm64.whl; nautilus_trader-1.231.0-cp314-cp314-manylinux_2_35_aarch64.whl; nautilus_trader-1.231.0-cp314-cp314-manylinux_2_35_x86_64.whl; nautilus_trader-1.231.0-cp314-cp314-win_amd64.whl
Tags
More Libraries packages
urllib3 is an HTTP client library that provides…
permissive · top 100 on PyPI
requestsRequests is a Python HTTP library that…
permissive · top 100 on PyPI
pluggyPluggy provides a plugin system that lets you…
permissive · top 100 on PyPI
python-dateutilProvides parsing, arithmetic, and recurrence…
permissive · top 100 on PyPI
sixSix provides utility functions to write Python…
permissive · top 100 on PyPI
pytestpytest is a testing framework that lets you…
permissive · top 100 on PyPI
betfairlightweightA Python wrapper for the Betfair API-NG that…
permissive · top 15,000 on PyPI
freqtradeFreqtrade is a Python-based cryptocurrency…
copyleft · top 15,000 on PyPI
backtestingBacktesting.py lets you define and test trading…
agpl · top 15,000 on PyPI
ccxtCCXT is a unified API library for connecting to…
permissive · top 5,000 on PyPI
backtraderBacktrader is a Python backtesting and live…
copyleft · top 15,000 on PyPI
lumibotLumibot is a Python framework for building,…
permissive · top 15,000 on PyPI
vectorbtVectorized backtesting engine that packs…
unclear · top 15,000 on PyPI
quantconnect-stubsProvides type stubs for QuantConnect's Lean…
permissive · top 15,000 on PyPI
ib_asyncib_async provides a Python interface to…
permissive · top 15,000 on PyPI
python-kraken-sdkProvides REST and WebSocket clients for trading…
permissive · top 15,000 on PyPI