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