NautilusTrader 开源交易框架获 3.1 万星
NautilusTrader 是一个基于 Python 与 Rust 的高性能开源算法交易框架,采用模块化架构,支持回测与实盘交易使用同一套代码。该项目在 GitHub 上已积累超过 3.1 万星,是量化交易领域较受关注的开源基础设施之一。
报道正文
本文目录2 个章节
<img src="https://github.com/nautechsystems/nautilus_trader/raw/develop/assets/nautilus-trader-logo.png" alt="NautilusTrader" width="500">
| Platform | Rust | Python |
|---|---|---|
Linux (x86_64) | 1.99.1 | 3.13-3.15 |
Linux (ARM64) | 1.99.1 | 3.13-3.15 |
macOS (ARM64) | 1.99.1 | 3.13-3.15 |
Windows (x86_64) | 1.99.1 | 3.13-3.15 |
Python 3.15 requires a source build or a development wheel until the next PyPI release.
- Docs: https://nautilustrader.io/docs/
- Website: https://nautilustrader.io
- 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.
(注:更多技术实现细节与完整 API 文档请查阅原项目 README)