Skip to main content

Module http

Module http 

Source
Expand description

HTTP to /info and /exchange: the Http wire, the Transport every read and action goes through, what /exchange answers, the signed body it takes, and the rate limit.

Re-exports§

pub use limit::Kind;
pub use limit::Spent;
pub use transport::Accepted;
pub use transport::ApiError;
pub use transport::EXCHANGE;
pub use transport::ExchangeResponse;
pub use transport::Http;
pub use transport::INFO;
pub use transport::Method;
pub use transport::Request;
pub use transport::Response;
pub use transport::Status;
pub use transport::Transport;
pub use transport::TransportError;
pub use transport::exchange;
pub use transport::info;
pub use transport::info_request;
pub use transport::user_request;

Modules§

body
The /exchange body, keys in the official Python SDK’s order. The venue reads it as JSON, so only the action’s own key order reaches a hash.
limit
Request weights against Hyperliquid’s rate limit (the docs’ “Rate limits and user limits”), the last minute’s spend, and the gate a 429 closes. No clock and no I/O: every call is handed the time.
transport
The Http wire and the Transport traits: any request out with its method, headers and body, the JSON posts to /info and /exchange every read and action goes through, and what /exchange answers.