Skip to main content

Crate nautilus_blockchain

Crate nautilus_blockchain 

Source
Expand description

Blockchain data adapter for NautilusTrader.

The nautilus-blockchain crate provides a high-performance, universal, extensible adapter for ingesting DeFi data from decentralized exchanges (DEXs), liquidity pools, and on-chain events. It enables you to power analytics pipelines and trading strategies with real-time and historical on-chain data.

§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.

  • hypersync: Enables the HyperSync client integration.
  • python: Enables Python bindings from PyO3.
  • extension-module: Builds as a Python extension module.
  • turmoil: Enables deterministic network simulation testing with turmoil.

Modules§

config
constants
contracts
Smart contract interfaces and utilities for blockchain interactions.
decode
events
Blockchain event data structures and parsers.
math
Mathematical utilities for blockchain value conversion.
python
Python bindings from PyO3.
reporting
Performance reporting and metrics tracking for blockchain operations.
rpc
RPC client implementations for blockchain network communication.