hyperliquid-dex/hyperliquid-python-sdk

AlgoScore
75
Use it
★1.9k
Forks586
Issues+PR132
Push1 d
LicenseMIT

Editorial verdict Use itchecked 05.12.2026

What it is good at

Built by the Hyperliquid team itself, so protocol features land here before third-party wrappers: recent releases added multisig support for userSetAbstraction and fixed price precision for HIP-3 markets. Two main classes do the work: Info for public and account data (user state, positions, order book, WebSocket subscriptions) and Exchange for signed actions such as orders, cancels and transfers. TESTNET_API_URL and MAINNET_API_URL constants let you run the same code on testnet first. The examples folder holds dozens of ready scripts: basic orders, TP/SL, vaults, transfers. API wallets are supported: a separate key generated at app.hyperliquid.xyz/API that signs actions on behalf of your main address.

Weak spots

There is almost no documentation in the repo. The README is short, much is learned only from examples and source code, and questions about field semantics (unified account balance, openInterest freshness, bid and ask order in bbo) sit open in issues. Releases are infrequent: 0.24.0 shipped in June 2026 and 0.24.1 in November. An open pull request adds WebSocket reconnection with subscription replay after a drop, so stream resilience is currently your job. Another report says server errors on the WebSocket are logged only at debug level. Development requires exactly Python 3.10 and Poetry.

Who it is for

Traders running bots or scripts on Hyperliquid who need full protocol access, including vaults, sub-accounts, multisig and transfers, beyond unified order calls. Info is also handy for monitoring other addresses.

Versus alternatives

ccxt lists Hyperliquid as a certified exchange and lets you keep one codebase across venues, but new protocol features reach it later and it adds a 1 bps builder-code fee by default. The official SDK stays closer to the protocol with no middleman fee, at the cost of tying your code to a single exchange.

Security

The README suggests putting your private key in examples/config.json. Use a dedicated API wallet instead of your main address key, never commit config.json, and start on TESTNET_API_URL. Install the exact package hyperliquid-python-sdk from PyPI and pin the version.

Alternatives

ccxt/ccxt

  • Latest release 0.24.1 — 25 Nov 2026
  • Previous release 0.24.0 — 4 Jun 2026
  • License: MIT
  • Install: pip install hyperliquid-python-sdk
  • Testnet via constants.TESTNET_API_URL

Stars by day

Our star series started 05.12.2026: the chart appears after the second snapshot.

GitHub dataGitHub ↗

TopicExchange connectors
LanguagePython
Created30.03.2023
Last release25.11.2026
Releases / tags46 / —
Contributors45
Commits total / 90d130 / 3
Watchers34

AlgoScore breakdownmethodology →

Popularity13.9/20
Freshness12/20
Community18.6/20
Maturity12/15
Momentum—
Usage—

Topic neighboursExchange connectors →

#RepositoryAlgoScore★30d growthPushLabel
1 ccxt/ccxtA unified trading API with more than 100 crypto exchanges and prediction markets in JavaScript / TypeScript / Python / C# / PHP / Go / Java / Rust 99 45k — today Use it
2 sieblyio/binanceNode.js & JavaScript SDK for Binance REST APIs & WebSockets, with TypeScript & browser support, integration tests, beautification & more. 83 935 — 1 d
3 hummingbot/gatewayMiddleware that standardizes DEX API endpoints on different blockchain networks 82 267 — today
4 JKorf/Binance.NetC#/.NET client library for the Binance.com cryptocurrency exchange REST and WebSocket APIs, supporting Spot and Futures trading and market data with strongly typed models. 81 1.2k — 4 d
5 sammchardy/python-binanceBinance Exchange API python implementation for automated trading 77 7.2k — 6 mo Use it
6 tardis-dev/tardis-machineLocally runnable server with built-in data caching, providing both tick-level historical and consolidated real-time cryptocurrency market data via HTTP and WebSocket APIs 76 314 — today
7 bmoscon/cryptofeedCryptocurrency Exchange Websocket Data Feed Handler 75 3.1k — today Use it
8 btrccts/btrcctsBackTest and Run CryptoCurrency Trading Strategies 75 158 — 1 d