df-hyperliquid-core 0.2.4

Hyperliquid SDK for Rust with full API parity: info, exchange, websockets, HIP-3, HIP-4, HyperEVM and CoreWriter. Exact decimals, the fastest order signing and websocket parsing of the SDKs benchmarked, native and wasm.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
//! Lending and borrowing: reserves, rates, supply, withdraw, borrow, repay and health.

pub mod action;
pub mod math;
pub mod plan;
pub mod state;

pub use action::{BadLend, BorrowLend, Operation};
pub use math::{PROTOCOL_SHARE, RATE_PLACES, USER_BORROW_CAP, borrow_rate, borrowable, supply_rate};
pub use plan::{Balance, Change, Ctx, Effect, Plan, Refused};
pub use state::{
    Basis, Position, ReserveState, Risk, UserState, all_reserve_states, all_reserve_states_request, reserve,
    reserve_state, reserve_state_request, user_state, user_state_request,
};