df-hyperliquid-core 0.0.9-beta

Hyperliquid SDK for Rust: markets, account, trading, transfers, earn and deploy, with exact decimals and signing. 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,
};