Skip to main content

Crate nautilus_hyperliquid

Crate nautilus_hyperliquid 

Source
Expand description

NautilusTrader adapter for the Hyperliquid decentralized exchange.

The nautilus-hyperliquid crate provides integration with the Hyperliquid API for market data and trading in perpetual futures, HIP-3 builder-deployed perpetuals, spot markets, and experimental HIP-4 outcome markets. The integration guide’s product support table defines support levels and validation limits.

The official Hyperliquid API reference can be found at https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api.

§NautilusTrader

NautilusTrader is an open-source, production-grade, Rust-native trading engine with a deterministic, event-driven architecture for multi-asset, multi-venue systems.

The system spans research, simulation, and live execution, providing research-to-live semantic parity.

§Feature Flags

Feature flags control code inclusion for Rust builds and Python bindings:

  • arrow: Enables Apache Arrow data support.
  • examples: Enables the crate’s example binaries.
  • extension-module: Builds as a Python extension module.
  • high-precision (default): Enables high-precision mode to use 128-bit value types.
  • python: Enables Python bindings from PyO3.

§Integrator Attribution

Mainnet orders include NautilusTrader’s builder address at a zero fee rate by default. These orders require a one-time builder-fee approval. Testnet and vault orders omit the builder.

See attribution details.

§Documentation

Re-exports§

pub use crate::config::HyperliquidDataClientConfig;
pub use crate::config::HyperliquidExecutionClientConfig;
pub use crate::data::HyperliquidDataClient;
pub use crate::execution::HyperliquidExecutionClient;
pub use crate::factories::HyperliquidDataClientFactory;
pub use crate::factories::HyperliquidExecutionClientFactory;
pub use crate::http::client::HyperliquidHttpClient;
pub use crate::websocket::client::HyperliquidWebSocketClient;

Modules§

account
Account-address resolution for Hyperliquid execution queries and subscriptions.
common
config
Configuration structures for the Hyperliquid adapter.
data
data_types
Hyperliquid-specific custom data types.
execution
Live execution client implementation for the Hyperliquid adapter.
factories
Factory functions for creating Hyperliquid clients and components.
http
outcome_settlement
Runtime dispatch for HIP-4 outcome settlements.
python
Python bindings from pyo3.
signing
Hyperliquid EIP-712 signing and nonce management.
websocket