hyperliquid-python-sdk
SDK for Hyperliquid API trading with Python.
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-sdkuv
uv add hyperliquid-python-sdkpoetry
poetry add hyperliquid-python-sdkInstalling 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
Tags
More Python Modules packages
Converts domain names between Unicode and…
permissive · top 100 on PyPI
setuptoolsSetuptools is a Python build backend and…
permissive · top 100 on PyPI
PyYAMLPyYAML parses and emits YAML 1.1 data format,…
permissive · top 100 on PyPI
pydanticPydantic validates Python data structures…
permissive · top 100 on PyPI
annotated-typesProvides reusable metadata objects for use with…
permissive · top 100 on PyPI
typing-inspectionProvides runtime tools to inspect and…
permissive · top 100 on PyPI
injective-pyInjective Python SDK provides client libraries…
permissive · top 15,000 on PyPI
py-clob-client-v2Python client library for placing and managing…
permissive · top 15,000 on PyPI
python-okxUnofficial Python wrapper for the OKX exchange…
permissive · top 15,000 on PyPI
snaptrade-python-sdkPython SDK client for SnapTrade's brokerage…
permissive · top 15,000 on PyPI
py-clob-clientPython client library for trading on…
permissive · top 15,000 on PyPI
krakenexProvides a minimal Python interface to the…
copyleft · top 15,000 on PyPI
smartapi-pythonA Python client library for Angel Broking's…
unclear · top 15,000 on PyPI
polymarket-clientOfficial Python SDK for Polymarket that…
permissive · top 15,000 on PyPI
fyers-apiv3Official Python client library for the Fyers…
permissive · top 15,000 on PyPI
dhanhqPython client library for the Dhan trading API,…
permissive · top 15,000 on PyPI