Bloxwapdocs

Hyperliquid SDK

Install @bloxwap/hyperliquid and read your first market price.

@bloxwap/hyperliquid is Bloxwap's TypeScript SDK for the Hyperliquid API. Use it to query market and account data, subscribe to live updates, or submit signed exchange actions.

API documentation · GitHub · npm

Install

Use Node.js 22.12 or later, or Bun 1.3.3 or later.

npm install @bloxwap/hyperliquid

Read a price

Create an HTTP client and request market mid-prices. This example uses mainnet and needs no wallet or API key.

import { HttpTransport, InfoClient } from '@bloxwap/hyperliquid';

const info = new InfoClient({ transport: new HttpTransport() });
const mids = await info.allMids();

console.log(mids.BTC);

For testnet, use new HttpTransport({ isTestnet: true }).

Choose a client

ClientUse it for
InfoClientMarket data, balances, positions, and open orders
SubscriptionClientLive data over WebSocket
ExchangeClientSigned actions, including orders and cancellations

See the SDK documentation for wallet setup, React Native requirements, and the full API.

The SDK is a fork of nktkas/hyperliquid, released under the MIT license.

On this page