skillfed

hyperliquid-python-sdk

SDK for Hyperliquid API trading with Python.

hyperliquid-python-sdk v0.24.0 596.9K downloads/30d#5,837 on PyPI1,783
Permissive license MIT Active released

What it is and what it does

This is a Python client library for the Hyperliquid decentralized exchange, enabling developers to interact with trading APIs programmatically. It wraps HTTP and WebSocket communication to the Hyperliquid platform, handling authentication via private keys and providing methods to query account state, place orders, and retrieve market data. The SDK depends on eth-utils, eth-account, websocket-client, requests, and msgpack for Ethereum key management, network communication, and data serialization.

The package is designed for traders and developers building bots or applications on top of Hyperliquid. Configuration is file-based (JSON), and the SDK supports both mainnet and testnet environments. It is currently classified as Alpha, meaning the API surface may change; the repository is actively maintained with recent commits and a growing user base.

Use it for:

  • Build automated trading bots that place orders and monitor positions on Hyperliquid without manual intervention
  • Query real-time account state, balances, and open orders programmatically for portfolio tracking
  • Integrate Hyperliquid trading into larger financial applications or risk-management systems
  • Test trading strategies on testnet before deploying to production with live capital

Worth the install?

AI-flagged interpretation of the facts on this page — verify before relying

Python SDK for trading on the Hyperliquid decentralized exchange API, providing programmatic access to order placement, account state queries, and market data.

Yes, if you are actively trading on Hyperliquid or building applications around it. The package has low install friction, active maintenance, permissive licensing, and no known vulnerabilities. The Alpha status means the API may change between releases, so pin your version and monitor releases. Not suitable if you need a stable, long-term-guaranteed API contract.

Install

hyperliquid-python-sdk on PyPI

pip

pip install hyperliquid-python-sdk

uv

uv add hyperliquid-python-sdk

poetry

poetry add hyperliquid-python-sdk

Installing hyperliquid-python-sdk

Before you install

Low install friction with a pure-Python wheel distribution. Active maintenance with recent releases; last commit 2026-06-04 and 1783 repository stars indicate ongoing development.

License in practice

MIT license is permissive; you can use this package freely in commercial and private projects with minimal restrictions.

Quickstart

pip install hyperliquid-python-sdk

from hyperliquid.info import Info
from hyperliquid.utils import constants

info = Info(constants.TESTNET_API_URL, skip_ws=True)
user_state = info.user_state("0xcd5051944f780a621ee62e39e493c489668acf4d")
print(user_state)

Requires Python 3.9 or higher; development is tested on Python 3.10 specifically. Private key configuration required for trading operations.

Verify before relying

  • Production readiness and stability guarantees beyond 'Alpha' development status classifier
  • Performance characteristics under high-frequency or high-volume trading scenarios
  • Completeness of API coverage relative to the full Hyperliquid exchange feature set

Package facts

License MIT (permissive)
Python support supports the current Python release (<4.0,>=3.9)
Install friction low — pure-Python wheel
Runtime dependencies 5 — eth-utils, eth-account, websocket-client, requests, msgpack
Maintenance actively maintained — 71 days since the last release
Last repo commit
First released
Downloads 596,944/month — #5,837 on PyPI (30-day window, as of 2026-08-14)
Known vulnerabilities none known (OSV.dev, checked 2026-08-14)

Evidence: hyperliquid_python_sdk-0.24.0-py3-none-any.whl

Development Status :: 3 - AlphaIntended Audience :: DevelopersLicense :: OSI Approved :: MIT LicenseOperating System :: OS IndependentProgramming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.9Topic :: Software Development :: Libraries :: Python Modules

Tags

hyperliquid trading api pythondex trading sdk pythonhyperliquid order placementcryptocurrency exchange api clientdecentralized exchange python sdk
trading-apiethereumdex

More Python Modules packages