Hyperliquid Python SDK
Python SDK for the Hyperliquid trading API, maintained by Hyperliquid, with a testnet example to practise before using real funds.
Install it with pip, point the usage example at the testnet and you can script orders and account queries on Hyperliquid in Python.
Who it is for
Python users who want to automate or study trading on Hyperliquid, starting on the testnet.
Strengths
- Install with pip install hyperliquid-python-sdk.
- The usage example connects to the testnet URL, which suits first experiments without real funds.
- You can use an API wallet instead of your main private key, while account_address stays your main wallet's public key.
- MIT licence, and the repository is maintained under the hyperliquid-dex organisation.
Good to know
- The config file holds a private key (secret_key), so keep it out of version control and prefer an API wallet.
- The README asks for Python 3.10 for development and says some dependencies have issues on 3.11.
- The last code change was in June 2026, so check the open issues before relying on newer exchange features.
- It is an API client only: no backtesting, strategy logic or risk limits, which you build yourself.
Custom bots are coming soon
We are preparing a service to build bots on tools like this one. Follow our Telegram channel to know when it opens.
Real-life uses
Testnet practice for a Hyperliquid script
Point a short Python script at the Hyperliquid testnet, place and cancel a few small test orders, and check your account queries and error handling before any real funds are involved. Illustrative only, never a promise of returns.
Compare it with others
schwab-py vs tastytrade SDK vs Tradier: which US stock and options API fits you?
Two unofficial Python wrappers and one API-first broker for US stocks and options, compared side by side: access, authentication, streaming, licences, costs and who each suits. Facts taken from each tool's review page.
Finnhub vs Alpha Vantage vs Massive (Polygon.io): which market data API for your bot?
The Finnhub Python client, Alpha Vantage and Massive (formerly Polygon.io) compared side by side: coverage, free tier, licence, difficulty and who each one suits.
Coinbase vs Kraken vs Bybit API: which exchange API suits your Python bot?
Coinbase Advanced Python SDK, the Kraken API and pybit for Bybit compared side by side: official status, license, interfaces, account requirements and who each one suits.
Quick answers
How much does Hyperliquid Python SDK cost?
The SDK is free (MIT). Trading on the exchange has its own fees; check the official website. Prices change, so check the official website before you decide.
Is Hyperliquid Python SDK open source?
Yes. License: MIT.
Who is Hyperliquid Python SDK for?
Python users who want to automate or study trading on Hyperliquid, starting on the testnet.
What is Hyperliquid Python SDK written in?
Hyperliquid Python SDK is written in Python.
What should I know before using Hyperliquid Python SDK?
The config file holds a private key (secret_key), so keep it out of version control and prefer an API wallet. The README asks for Python 3.10 for development and says some dependencies have issues on 3.11. The last code change was in June 2026, so check the open issues before relying on newer exchange features. It is an API client only: no backtesting, strategy logic or risk limits, which you build yourself.
Want a bot like this when custom bots open? Get notified · All comparisons · Guides
Sources
Every fact on this page comes from these sources, checked on 2026-11-17. If something has changed, the source wins.
- https://raw.githubusercontent.com/hyperliquid-dex/hyperliquid-python-sdk/master/README.md: purpose, pip install, config.json with account_address and secret_key, API wallet option, testnet example, Python 3.10 for development, MIT
- https://api.github.com/repos/hyperliquid-dex/hyperliquid-python-sdk: MIT, about 1,900 stars, last push 2026-06-04, not archived, Python
Alternatives in Broker & exchange APIs
Binance Python connectors
Binance's official, auto-generated Python SDKs for its APIs, split into separate packages for spot, USDⓈ-M and COIN-M futures, options, margin and more.
CCXT
Library that unifies the APIs of 100+ crypto exchanges behind a single interface, available in seven languages.
Coinbase Advanced API Python SDK
Coinbase's official Python SDK for the Advanced Trade REST and WebSocket APIs.
ib_async (Interactive Brokers)
Python library to connect to Interactive Brokers through TWS or IB Gateway; successor of the popular ib_insync.