Skip to main content

Crate df_hyperliquid_core

Crate df_hyperliquid_core 

Source
Expand description

Hyperliquid SDK for Rust.

  • client: /info, /exchange, the websocket, HyperEVM RPC, rate limits.
  • 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: balances, positions, orders, fills, fees, modes, subaccounts, API wallets and builder approvals.
client
Connecting to Hyperliquid: /info and /exchange over HTTP, the websocket, HyperEVM RPC, rate limits, and the Client that signs and sends.
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, frames, the connection’s state, and a store that keeps live state for an app.
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, and the ticket that turns an intent into the exact action.
transfer
Moving money: sends, withdrawals, deposits through the Arbitrum bridge, moves between perps and spot, and HyperCore to HyperEVM.
utils
Helpers every Hyperliquid app needs: exact decimals, price and size rounding, asset ids, units, time, hex, nonces and signing primitives.