# hyperliquid-dex/hyperliquid-python-sdk

SDK for Hyperliquid API trading with Python.

Repository: https://github.com/hyperliquid-dex/hyperliquid-python-sdk
Canonical: https://ross.abutalabs.com/products/hyperliquid-python-sdk
Language: Python
License: MIT
License Family: permissive
Last push: 2026-06-04T19:49:39+00:00

## Health v2 (maintenance only)
Score: 86/100 (v2, computed 2026-09-06T22:10:43.235034+00:00)
- activity 85, release rhythm 86, longevity 89
- inputs: {"age_days": 1256, "days_push": 94, "days_rel": 94, "gap_med": 21, "n_releases_24m": 22}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1817, forks 562 (observed 2026-09-06T21:13:46.425431+00:00)

## What it is
An official Python SDK for the Hyperliquid decentralized perpetuals exchange API. It provides clients for querying market and account data (Info) and placing/canceling orders (Exchange) over REST and WebSocket.

## Use cases
- place and cancel orders on hyperliquid from python
- query account positions and balances on hyperliquid
- build a trading bot for hyperliquid perpetuals
- stream live market data from hyperliquid
- test trading strategies on hyperliquid testnet
- authenticate with an api wallet to trade hyperliquid

## When to choose
- you want to trade on Hyperliquid programmatically in Python
- you need official, maintained bindings for Hyperliquid's REST and WebSocket APIs
- you want ready-made examples for orders, market data, and testnet usage

## When to avoid
- you trade on a different exchange or need a multi-exchange abstraction
- you need a non-Python language
- you want a GUI or hosted trading service rather than a code library

## Facets
- artifact type: library
- maturity: active
- function: sdk, http-client, websocket, trading
- domain: fintech, apis, developer-tools
- platform: python, cross-platform
- tags: hyperliquid, perpetuals, crypto-trading, exchange-api, order-execution, market-data, cryptocurrency

## Member repositories
- hyperliquid-dex/hyperliquid-python-sdk (main) score 86

## Provenance
- Observed fields: from GitHub, fetched 2026-09-06T21:13:46.425431+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T03:21:27.029828+00:00, confidence not recorded.
  - readme: https://github.com/hyperliquid-dex/hyperliquid-python-sdk (fetched 2026-09-06T21:13:46.425431+00:00, sha cb40e04e8a17)
  - registry_pypi: https://pypi.org/pypi/hyperliquid-python-sdk/json (fetched 2026-08-29T11:00:30.261655+00:00, sha 49947cf6752e)
- Data as of 2026-09-07T08:21:23.190159+00:00.
