nautilus-risk

Crates.ionautilus-risk
lib.rsnautilus-risk
version0.49.0
created_at2025-04-04 12:10:49.499021+00
updated_at2025-07-05 22:49:14.394884+00
descriptionA high-performance algorithmic trading platform and event-driven backtester
homepagehttps://nautilustrader.io
repositoryhttps://github.com/nautechsystems/nautilus_trader
max_upload_size
id1619871
size237,181
publish (github:nautechsystems:publish)

documentation

https://nautilustrader.io/docs

README

nautilus-risk

build Documentation crates.io version license Discord

Risk engine for NautilusTrader.

The nautilus-risk crate provides comprehensive risk management capabilities including pre-trade order validation, position sizing calculations, and trading controls. This system ensures trading operations remain within defined risk parameters and regulatory constraints:

  • Risk engine: Central risk management orchestration with configurable trading states.
  • Order validation: Pre-trade checks for price, quantity, notional limits, and market conditions.
  • Position sizing: Fixed-risk position sizing calculations with commission and exchange rate support.
  • Trading controls: Rate limiting, balance validation, and exposure management.
  • Account protection: Multi-currency balance checks and margin requirement validation.

Platform

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.

NautilusTrader's design, architecture, and implementation philosophy prioritizes software correctness and safety at the highest level, with the aim of supporting mission-critical, trading system backtesting and live deployment workloads.

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.

  • python: Enables Python bindings from PyO3.

Documentation

See the docs for more detailed usage.

License

The source code for NautilusTrader is available on GitHub under the GNU Lesser General Public License v3.0. Contributions to the project are welcome and require the completion of a standard Contributor License Agreement (CLA).


NautilusTraderâ„¢ is developed and maintained by Nautech Systems, a technology company specializing in the development of high-performance trading systems. For more information, visit https://nautilustrader.io.

logo

© 2015-2025 Nautech Systems Pty Ltd. All rights reserved.

Commit count: 15053

cargo fmt