Expand description
NautilusTrader is an open-source, high-performance, production-grade algorithmic trading platform, providing quantitative traders with the ability to backtest portfolios of automated trading strategies on historical data with an event-driven engine, and also deploy those same strategies live, with no code changes.
§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 main nautilus_trader
Python package, or as part of a Rust only build.
ffi
: Enables the C foreign function interface (FFI) fromcbindgen
.python
: Enables Python bindings frompyo3
.stubs
: Enables type stubs for use in testing scenarios.
Modules§
- Account types such as
CashAccount
andMarginAccount
. - Common
Currency
constants. - Data types for the trading domain model.
- Enumerations for the trading domain model.
- Events for the trading domain model.
- C foreign function interface (FFI) from
cbindgen
. - Identifiers for the trading domain model.
- Instrument definitions for the trading domain model.
- Model specific macros.
- Order book components which can handle L1/L2/L3 data.
- Order types for the trading domain model.
- A
Position
for the trading domain model. - Python bindings from
pyo3
. - Type stubs to facilitate testing.
- Value types for the trading domain model such as
Price
,Quantity
andMoney
. - Common
Venue
constants.