df_hyperliquid_core/lib.rs
1//! Hyperliquid SDK for Rust.
2//!
3//! - [`client`]: `/info`, `/exchange`, the websocket, HyperEVM RPC, rate limits.
4//! - [`markets`]: what is listed and what it trades at.
5//! - [`account`]: what an address holds and who may sign for it.
6//! - [`trade`]: orders on every market.
7//! - [`transfer`]: moving money.
8//! - [`earn`]: staking, vaults and lending.
9//! - [`deploy`]: spot tokens, HIP-3 dexes and HIP-4 outcome markets.
10//! - [`live`]: websocket subscriptions and kept live state.
11//! - [`utils`]: decimals, rounding, asset ids, units and signing primitives.
12//!
13//! Money is exact decimals, never floats. Features: `sign` and `native` (default), `web`.
14#![deny(clippy::float_arithmetic)]
15
16pub mod account;
17pub mod client;
18pub mod deploy;
19pub mod earn;
20pub mod live;
21pub mod markets;
22pub mod trade;
23pub mod transfer;
24pub mod utils;
25
26pub use client::{Client, Network, SendError};
27pub use utils::{Address, Dec};