Scripts2026年9月11日·1 分钟阅读

NautilusTrader — High-Performance Algorithmic Trading Framework

A production-grade algorithmic trading platform written in Rust and Python, designed for backtesting and live trading with microsecond-level performance.

Agent 就绪

Agent 可直接安装

这个资产可安装;Agent 先选择当前运行时、检查安装计划,再运行匹配命令。

Native · 98/100策略:允许
Agent 入口
任意 MCP/CLI Agent
类型
Skill
安装
Single
信任
信任等级:Established
入口
NautilusTrader Overview
直接安装命令
npx -y tokrepo@latest install 3ae652c1-ae2e-11f1-9bc6-00163e2b0d79 --target codex

先 dry-run 确认安装计划,再运行此命令。

Introduction

NautilusTrader is an open-source algorithmic trading platform that combines a Rust performance core with a Python strategy API. It supports both historical backtesting and live execution across multiple asset classes and venues.

What NautilusTrader Does

  • Runs backtests with tick-level fidelity and nanosecond timestamps
  • Executes live strategies across crypto, FX, equities, and futures
  • Provides a unified API so the same strategy code works in backtest and live modes
  • Connects to Interactive Brokers, Binance, Bybit, and other venues via adapters
  • Manages portfolios, risk limits, and order lifecycle automatically

Architecture Overview

The core engine is written in Rust and exposed to Python via PyO3 bindings, delivering microsecond-level event processing. A message bus routes market data, order events, and signals between components. Strategy actors subscribe to data streams and emit trading commands, while the execution engine handles order routing and fill simulation in backtest mode.

Self-Hosting & Configuration

  • Install from PyPI with pip or build from source for Rust-level customization
  • Configure venues, data catalogs, and strategies in Python or YAML
  • Persist trade data with the Parquet-based data catalog
  • Deploy live nodes as standalone Python processes or in Docker
  • Connect adapters for live market data feeds and order execution

Key Features

  • Rust core delivering millions of events per second
  • Identical code path for backtesting and live trading
  • Built-in risk management with position limits and order throttling
  • Comprehensive order types including bracket, trailing stop, and iceberg
  • Extensible adapter system for adding new venues and data sources

Comparison with Similar Tools

  • Backtrader — Python-only, simpler API but significantly slower on large datasets
  • Zipline — originally built for Quantopian, limited live trading support
  • VectorBT — vectorized analytics focus, less suited for event-driven strategies
  • QuantConnect (Lean) — C#-based engine with cloud platform, different language ecosystem
  • FreqTrade — crypto-focused bot with a narrower feature set

FAQ

Q: What Python version is required? A: Python 3.10 or later on Linux or macOS. Windows support is experimental.

Q: Can I use it without knowing Rust? A: Yes. The Python API is complete and self-contained. Rust knowledge is only needed to modify the core engine.

Q: Is paper trading supported? A: Yes. Sandbox adapters let you run strategies against live data without placing real orders.

Q: What data formats does it accept? A: Tick, bar, and order book data in CSV or Parquet. A data catalog API handles loading and persistence.

Sources

讨论

登录后参与讨论。
还没有评论,来写第一条吧。

相关资产