Skip to main content

Crate nautilus_derive

Crate nautilus_derive 

Source
Expand description

NautilusTrader adapter for Derive.

The nautilus-derive crate provides integration with the Derive self-custodial onchain options, perpetuals and spot exchange. Authentication uses an EVM smart-contract wallet on the Derive Chain together with a session-key signer; orders are EIP-712 typed-data signed against the venue’s per-action module contracts.

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

  • python: Enables Python bindings from PyO3.
  • extension-module: Builds as a Python extension module.

High-precision mode (128-bit value types) is enabled by default.

Re-exports§

pub use crate::config::DeriveDataClientConfig;
pub use crate::config::DeriveExecClientConfig;
pub use crate::execution::DeriveExecutionClient;
pub use crate::factories::DeriveDataClientFactory;
pub use crate::factories::DeriveExecFactoryConfig;
pub use crate::factories::DeriveExecutionClientFactory;

Modules§

common
config
Configuration structures for the Derive adapter.
data
Live market data client implementation for the Derive adapter.
execution
Live execution client implementation for the Derive adapter.
factories
Factory functions for creating Derive clients and components.
http
HTTP client for the Derive REST API.
providers
Instrument provider for the Derive adapter.
python
Python bindings from pyo3.
signing
Derive self-custodial action signing.
websocket
WebSocket transport for the Derive JSON-RPC stream.