TradeBot Check
Trading involves a risk of losing money. Nothing on this site is financial advice and past results do not guarantee future results. Risk disclosure
Broker & exchange APIs

Hyperliquid Python SDK

Python SDK for the Hyperliquid trading API, maintained by Hyperliquid, with a testnet example to practise before using real funds.

hyperliquid-dex/hyperliquid-python-sdk★ 1,912 stars last commit 2026-12-04
Our take

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.

Notify me

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.

🧪 Testnet run: 3 test orders placed, 3 cancelled, 0 errors (example). Next: add a maximum order size.

Compare it with others

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.

  1. 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
  2. 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