Documentation
Ship on Hyperliquid
in minutes
A quickstart, full API reference, and datastream guides. Most teams are live with a one-line change.
Quickstart
Three steps to your first request
- 1Create an API keySign up and generate a key from the dashboard. The free tier is ready immediately.
- 2Point your client at usSwap your base URL to api.hyperliquidrpc.com — wire-compatible with the official API.
- 3Subscribe to streamsOpen a WebSocket to stream.hyperliquidrpc.com and subscribe to raw or enhanced channels.
first-request.ts
copy| 1 | import { Hyperliquid } from "hyperliquid"; |
| 2 | |
| 3 | const sdk = new Hyperliquid({ |
| 4 | baseUrl: "https://api.hyperliquidrpc.com", |
| 5 | apiKey: process.env.HLRPC_KEY, |
| 6 | }); |
| 7 | |
| 8 | const mids = await sdk.info.allMids(); |
| 9 | // → { BTC: "67234.0", ... } |
Build something
fast
Spin up an API key in seconds. Free tier included — no credit card required.