hyperliquid-api-reference
Installation
SKILL.md
Hyperliquid API reference (desk edition)
Desk-used contracts rechecked against the official docs and SDKs on 2026-10-25 (scope and evidence). Funding cap, mark-price inputs, market-order notionals and CEX funding intervals were rechecked on 2026-11-12 (evidence). Scoped to what the desk uses, not exhaustive. When in doubt, fetch the page: append .md to any docs URL for raw markdown, for example https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/exchange-endpoint.md.
Endpoints
| Mainnet | Testnet | |
|---|---|---|
| REST | https://api.hyperliquid.xyz |
https://api.hyperliquid-testnet.xyz |
| WebSocket | wss://api.hyperliquid.xyz/ws |
wss://api.hyperliquid-testnet.xyz/ws |
| HyperEVM RPC | https://rpc.hyperliquid.xyz/evm (chain 999) |
https://rpc.hyperliquid-testnet.xyz/evm (chain 998) |
POST /infobody{"type": "<request>", ...}, unsigned; response is the bare payload. Unknowntypeor missing field: HTTP 422; invalid JSON: HTTP 400; unknowndex: HTTP 500.POST /exchangebody{"action": {...}, "nonce": <ms>, "signature": {"r","s","v"}, "vaultAddress"?: "0x...", "expiresAfter"?: <ms>}; response{"status":"ok","response":{"type":"order"|"cancel"|"default"|..., "data"?: {...}}}or{"status":"err","response":"<string>"}, both HTTP 200.- Header
Content-Type: application/json.