Skip to main content

Crate nautilus_system

Crate nautilus_system 

Source
Expand description

System-level components and orchestration for NautilusTrader.

The nautilus-system crate provides the core system architecture for orchestrating trading systems, including the kernel that manages all engines, configuration management, and system-level factories for creating components:

  • NautilusKernel - Core system orchestrator managing engines and components.
  • NautilusKernelConfig - Configuration for kernel initialization.
  • System builders and factories for component creation.

§NautilusTrader

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, providing research-to-live semantic parity.

§Feature Flags

This crate provides feature flags to control source code inclusion during compilation, depending on the intended use case, i.e. whether to provide Python bindings for the nautilus_trader Python package, or as part of a Rust only build.

  • defi: Enables DeFi (Decentralized Finance) support.
  • extension-module: Builds as a Python extension module.
  • live: Enables live trading mode dependencies.
  • python: Enables Python bindings from PyO3 and auto-enables streaming.
  • streaming: Enables the nautilus-persistence dependency for streaming configuration.
  • tracing-bridge: Enables the tracing subscriber bridge for log integration.

Re-exports§

pub use builder::NautilusKernelBuilder;
pub use clock_factory::ClockFactory;
pub use config::NautilusKernelConfig;
pub use controller::Controller;
pub use event_store::EventStoreFactory;
pub use event_store::KernelEventStore;
pub use event_store::RegisteredComponents;
pub use kernel::NautilusKernel;
pub use messages::ControllerCommand;
pub use messages::CreateActor;
pub use messages::CreateStrategy;
pub use messages::RemoveActor;
pub use messages::RemoveStrategy;
pub use messages::StartActor;
pub use messages::StartStrategy;
pub use messages::StopActor;
pub use messages::StopStrategy;
pub use python::FactoryRegistry;
pub use python::get_global_pyo3_registry;

Modules§

builder
clock_factory
Clock construction for kernel and component clocks.
config
controller
event_store
Kernel-facing seam for run-lifecycle event-sourcing.
kernel
Kernel construction, component ownership, and run-lifecycle orchestration.
messages
python
Python bindings from PyO3.
trader
Central orchestrator for managing actors, strategies, and execution algorithms.

Structs§

StreamingConfig
Configuration streaming live or backtest runs to a persistence writer.

Enums§

RotationConfig
Configuration for file rotation in streaming output.