Expand description
Hyperliquid SDK for Rust.
client: theClient,/infoand/exchangeover HTTP, rate limits, HyperEVM, and the native and browser wires and websockets.markets: what is listed and what it trades at.account: what an address holds and who may sign for it.trade: orders on every market.transfer: moving money.earn: staking, vaults and lending.deploy: spot tokens, HIP-3 dexes and HIP-4 outcome markets.live: websocket subscriptions and kept live state.utils: decimals, rounding, asset ids, units and signing primitives.
Money is exact decimals, never floats. Features: sign and native (default), web.
Re-exports§
pub use client::Client;pub use client::Network;pub use client::SendError;pub use utils::Address;pub use utils::Dec;
Modules§
- account
- What an address holds and who may sign for it.
- client
- Connecting to Hyperliquid: the
Clientthat reads, signs and sends over one network’s rate-limited/infoand/exchange(http), the networks, HyperEVM (evm), and the native and browser wires and websockets. - deploy
- Deploying on Hyperliquid: spot tokens and their auction, HIP-3 perp dexes and HIP-4 outcome markets.
- earn
- Staking, vaults and lending.
- live
- The websocket without the socket: subscriptions, the frames sent and received, the
connection’s state, what a feed hands back, and a store that keeps live state for an app.
Rows the socket sends in the shapes
/infoanswers are thecrate::accountandcrate::marketstypes; only the socket’s own frames are defined here. - markets
- What is listed and what it trades at: perps, spot, HIP-3 dexes and HIP-4 outcomes; books, candles, trades, mids and funding.
- trade
- Orders on every market: place, cancel, modify, TWAP, TP/SL, leverage and margin, builder fees, outcome splits and fees, and the ticket that turns an intent into the exact action.
- transfer
- Moving money: sends and moves between balances on the venue, USDC in and out through the Arbitrum bridge, spot tokens between HyperCore and HyperEVM, and the ERC-20 calls they need.
- utils
- Helpers every Hyperliquid app needs: exact decimals, price and size rounding, asset ids, units, time, hex, nonces and signing primitives.