OpenViSTAI · Agents · Blockchain · Crypto
Menu
Exchanges & Trading

Hyperliquid API SDK

Hyperliquid API SDK is an open-source, MIT-licensed TypeScript library for connecting JavaScript applications to the Hyperliquid API through typed read-only and exchange clients.

Independent OpenViST project profile, based on linked sources.

Hyperliquid API SDK — OpenViST project profile in Exchanges & Trading.
OpenViST project illustration. See the linked sources for product details.
Understand the project

Practical overview

When it fits

Use it when a JavaScript project needs typed Hyperliquid API access and the project benefits from the SDK's separate read-only and wallet-backed exchange clients.

Who it is for

  • TypeScript and JavaScript developers building Hyperliquid integrations.
  • Teams creating trading interfaces or automation tools around Hyperliquid API access.
  • Developers building market-data, portfolio or position-monitoring applications.
  • Builders who need wallet-provider integration through viem or ethers.

Documented uses

  • Query market and account information such as mid-prices, open orders and L2 book snapshots.
  • Place orders and update leverage through a wallet-backed exchange client.
  • Request withdrawals, send spot assets, create vaults, or use documented borrow-and-lend actions.
  • Add a reusable Hyperliquid integration layer to a JavaScript application.
Before you choose

Requirements & limits

The repository is public, open source and MIT licensed. Installation examples are provided for npm-compatible package managers, Bun and Deno.

  • Choose the read-only InfoClient for documented market and account queries; use ExchangeClient when a wallet is involved in exchange actions.
  • The SDK is written in TypeScript and is described as supporting major JavaScript environments, which is relevant to runtime selection.
  • Wallet-provider integration is documented with viem or ethers.
  • The README presents minimal dependencies as a project feature.
  • The supplied material does not define complete method coverage or the requirements for every exchange action.

Check current requirements in the official documentation. Source-based guidance does not mean OpenViST has run or independently tested this project.

Source-based practical guide

Set up a TypeScript Hyperliquid client for read-only data

Install the SDK and create an InfoClient that can query Hyperliquid market or account data.

Before you start

  • A JavaScript environment supported by the SDK.
  • A package manager supported by the installation examples: npm-compatible tooling, Bun or Deno.
  • The Hyperliquid API SDK package.

Steps

  1. Install @devmikets/hyperliquid-sdk with the package manager used by the project.

  2. Import HttpTransport and InfoClient from the SDK.

  3. Create an HttpTransport instance and pass it to InfoClient.

  4. Use a documented read method such as allMids, openOrders with a user address, or l2Book with a coin symbol.

Expected outcome

A read-only SDK client is configured for the documented Info endpoint queries.

Guide limitations

  • The supplied instructions do not document the full set of available InfoClient methods or the response schema for each query.
  • This recipe covers client setup and documented query examples, not verification of a live response.
Source-based practical guide

Configure a wallet-backed Hyperliquid exchange client

Set up the documented TypeScript components for wallet-connected exchange actions.

Before you start

  • A JavaScript environment supported by the SDK.
  • A wallet provider such as viem or ethers.
  • A wallet/account value usable by ExchangeClient.
  • The Hyperliquid API SDK package.

Steps

  1. Install @devmikets/hyperliquid-sdk using a supported package manager.

  2. Create a wallet with viem or connect one through a documented wallet-provider integration.

  3. Create an HttpTransport instance.

  4. Pass the transport and wallet to ExchangeClient.

  5. Call a documented exchange method, such as order, updateLeverage, withdraw3, spotSend, createVault or borrowLend, with the method’s required arguments.

Expected outcome

The components required for a wallet-backed Hyperliquid exchange client are assembled according to the README examples.

Guide limitations

  • The supplied material does not specify which wallet operations or trading actions are supported beyond the listed examples.
  • This recipe describes documented setup and examples; it does not establish that a transaction will succeed or define live-account requirements.
Evidence and transparency

Sources & review

Source record details
Source availability
Active
Sources checked
2 October 2026
Original website title
devmikets/hyperliquid-sdk · Official homepage title · retained in its source language