A fully typed, validated async client for the Hyperliquid API.
- Documentation: https://tribulnation.com/typed/hyperliquid
- Source Code: https://github.com/tribulnation/typed/tree/main/packages/hyperliquid
from typed_hyperliquid import Hyperliquid
async with Hyperliquid.new(public=True) as client:
async with client.streams.trades('BTC') as trades:
async for msg in trades:
for trade in msg:
print(trade['px'], trade['sz'], trade['side'])
Why Typed Hyperliquid?
- 🎯 Precise Types: Typed endpoint inputs and responses, not
dict/Any. - ✅ Runtime Validation: Responses validated by default, not just typed on paper.
- ⚡ Async First: HTTP, request-response WebSocket, and subscription streams, built for concurrent workflows.
- 📚 Full Surface:
client.info,client.exchange, andclient.streams-- perps, spot, and every documented info/exchange/stream endpoint, not just the popular ones.
Installation
pip install typed-hyperliquid
How To
- Place & Manage Orders
- Fetch Market Data
- Fetch Your Balances & Positions
- Fetch Your Transactions
- Listen To Your Trades
- Listen To Public Data
Reference
Design Philosophy
Typed Hyperliquid follows the principles outlined in this blog post.
Details matter. Developer experience matters.
License
MIT — see LICENSE.
Release files for typed-hyperliquid 2.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| typed_hyperliquid-2.1.0.tar.gz | 107.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| typed_hyperliquid-2.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 363.4 kB
Release files / typed_hyperliquid-2.1.0.tar.gz
| Download URL | typed_hyperliquid-2.1.0.tar.gz |
|---|---|
| Size | 107.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9c7b7b2c16a90d18e5bae25fb43bc4a2557c80afb074528ccd51fe639c7eceba
|
|
BLAKE2b-256 checksum How to use checksums |
b1dcbe1fb65978d1d90bb777d2732bb6505fc855ea324c01d7b1c1e15a4e2f9d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 10, 2026.
Transparency logRelease files / typed_hyperliquid-2.1.0-py3-none-any.whl
| Download URL | typed_hyperliquid-2.1.0-py3-none-any.whl |
|---|---|
| Size | 255.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c5492b7c075e3791fe4d814965882afcb2af2d8944e390308542cabe6edbfa7e
|
|
BLAKE2b-256 checksum How to use checksums |
5cbc4a693898adc4756d29b696bf448e931285e0e5a8d5af400046144b797897
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 10, 2026.
Transparency log