Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
N

nautilus_trader

> 数据库
Open source

Production-grade Rust-native trading engine with deterministic event-driven architecture

25.2K stars0 likes4 views
WebsiteGitHub

About

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
  • 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 instructions post-only, reduce-only, and icebergs. Contingency orders including OCO, 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 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
  • 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.

New integration proposals 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, 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:

  • Source and review controls: CODEOWNERS gate critical infrastructure, dependency manifests, and

Issues· 159 open

View all issuesOpen on GitHub
  • #5116

    BacktestEngine.reset() then run() logs 'Invalid state trigger READY -> INITIALIZE' and skips ts_started

    Updated Sep 30, 2026
  • #5161

    Portfolio missing_price_instruments stays stale when positions exist before the first AccountState

    Updated Sep 30, 2026
  • #5067

    [Kraken] Scoped reads compare the wrong pair spelling, and one asset carries up to three currency codes

    Updated Sep 30, 2026
  • #5151

    Emulated orders on rc6: first order ignores the cached quote, and RiskEngine checks are skipped

    Updated Sep 30, 2026
  • #4932

    Interactive Brokers: a replayed execution is dropped when the instrument provider has not yet loaded its instrument

    Updated Sep 29, 2026
  • #5119

    RiskEngine admits buys that together exceed a cash account's free balance

    bugUpdated Sep 29, 2026
  • #5006

    [Bybit] Add public all-liquidation custom data subscription

    Updated Sep 29, 2026
  • #5032

    [Interactive Brokers] Account values outside the fixed reqAccountSummary tag list are unreachable

    Updated Sep 29, 2026
  • #5007

    [Interactive Brokers] `generate_fill_reports` sends the prefixed `AccountId` as the execution filter's account code: rejects with error 321

    bugUpdated Sep 29, 2026
  • #4970

    [Interactive Brokers] Execution callback can lose submitted client_order_id mapping and materialize duplicate reconciliation order

    bugadapterUpdated Sep 29, 2026

> Tags

Rustalgorithmic-trading-engineartificial-intelligencecrypto-tradingequity-trading

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 30, 2026
Category数据库
PricingOpen source

> Related tools

P
PostgreSQL
功能强大的开源关系型数据库
R
Redis
内存数据结构存储,常用作缓存与队列
M
MySQL
广泛使用的开源关系型数据库