Skip to main content

Crate nautilus_interactive_brokers

Crate nautilus_interactive_brokers 

Source
Expand description

NautilusTrader adapter for Interactive Brokers.

The nautilus-interactive-brokers crate wraps the ibapi client and connects it to NautilusTrader’s live data, execution, historical data, and instrument loading infrastructure.

§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 (Rust-only builds vs. Python bindings through PyO3).

  • python: Enables PyO3 bindings for configs, enums, the historical client, the instrument provider, and the Dockerized gateway helper.
  • gateway: Enables the Dockerized IB Gateway helper via bollard.
  • extension-module: Builds as a Python extension module (used together with python and gateway).

§Documentation

See https://docs.rs/nautilus-interactive-brokers for the latest API documentation.

Modules§

common
Shared utilities, constants, and data structures for the Interactive Brokers adapter.
config
Configuration types for the Interactive Brokers adapter.
data
Interactive Brokers data client implementation.
error
Error types and classification for the Interactive Brokers adapter.
execution
Execution client implementation for Interactive Brokers.
factories
Factory functions for creating Interactive Brokers clients and components.
gateway
Gateway management for Interactive Brokers Docker containers.
historical
Historical data client for Interactive Brokers.
providers
Instrument provider for Interactive Brokers.
python
Python bindings from pyo3.