Expand description
HyperLiquid exchange implementation HyperLiquid exchange implementation.
HyperLiquid is a decentralized perpetual futures exchange built on its own L1 blockchain. Unlike centralized exchanges (CEX) like Binance or Bitget, HyperLiquid uses:
- Ethereum wallet private keys for authentication (EIP-712 typed data signatures)
- Wallet addresses as account identifiers (no registration required)
- USDC as the sole settlement currency
§Features
- Perpetual futures trading with up to 50x leverage
- Cross-margin and isolated margin modes
- Real-time WebSocket data streaming
- EIP-712 compliant transaction signing
§Example
use ccxt_exchanges::hyperliquid::HyperLiquid;
// Create a public-only instance (no authentication)
let exchange = HyperLiquid::builder()
.testnet(true)
.build()?;
// Fetch markets
let markets = exchange.fetch_markets().await?;
println!("Found {} markets", markets.len());
// Create an authenticated instance
let exchange = HyperLiquid::builder()
.private_key("0x...")
.testnet(true)
.build()?;
// Fetch balance
let balance = exchange.fetch_balance().await?;Re-exports§
pub use auth::HyperLiquidAuth;pub use builder::HyperLiquidBuilder;pub use error::HyperLiquidErrorCode;pub use error::is_error_response;pub use error::parse_error;
Modules§
- auth
- HyperLiquid authentication module.
- builder
- HyperLiquid builder module.
- error
- HyperLiquid error handling module.
- parser
- HyperLiquid data parser module.
- rest
- HyperLiquid REST API implementation.
- ws
- HyperLiquid WebSocket implementation.
Structs§
- Hyper
Liquid - HyperLiquid exchange structure.
- Hyper
Liquid Options - HyperLiquid-specific options.
- Hyper
Liquid Urls - HyperLiquid API URLs.