SDK for Hyperliquid API
npm install hyperliquidTypescript SDK to more easily interact with Hyperliquid's API
All info on the Hyperliquid API can be found here: HyperLiquid API Documentation
- Complete API coverage for both REST and WebSocket endpoints
- TypeScript support with comprehensive type definitions
- Browser and Node.js compatibility
- Automatic handling of trailing zeros in price and size fields
- Rate limiting support
- Comprehensive error handling
Choose your preferred installation method:
``bashnpm
npm i --save hyperliquid
$3
This SDK uses native WebSocket implementation which requires Node.js version 22 or higher. If you're using an earlier version of Node.js, you'll need to install the
ws package to use the WebSocket functionality:`bash
npm install ws
`$3
`html
`The SDK provides two browser bundles:
-
browser.global.js: UMD bundle that exposes the SDK globally as HyperliquidSDK. Use this with regular