NautilusTrader Python API¶
NautilusTrader is an open-source, production-grade, Rust-native trading engine infrastructure for multi-asset, multi-venue trading systems.
Its Rust-native core spans research, deterministic simulation, portfolio and risk modeling, and live execution under one event-driven architecture. Python serves as the control plane for strategy logic, configuration, and orchestration, while entire systems can also be built in Rust.
NautilusTrader is engineered to minimize the gap between research and production. The same execution semantics and time model apply in both backtests and live systems, reducing deployment risk and unexpected behavior.
Modular adapters keep venue integration neutral. Current integrations span crypto venues, traditional markets, betting exchanges, and data providers, with custom adapters available for REST, WebSocket, and provider-specific APIs.
This reference covers every public module, class, method, and function in the Python framework.
Modules¶
Module |
Description |
|---|---|
Account management and balance tracking |
|
Exchange and broker integrations |
|
Performance analysis and statistics |
|
Historical backtesting engine |
|
In-memory data and state caching |
|
Shared components, clocks, loggers, and factories |
|
Configuration objects for system components |
|
Core primitives, datetime utilities, and UUID types |
|
Data engine, clients, and aggregation |
|
Execution engine, clients, and algorithms |
|
Technical analysis indicators |
|
Live trading engine and execution |
|
Domain model: instruments, orders, events, and data |
|
Data persistence and catalog |
|
Portfolio management |
|
Risk engine and management |
|
Message serialization |
|
System kernel and process management |
|
Trading strategies and controllers |