A fully typed, validated async client for the Hyperliquid API.
- Documentation: https://tribulnation.com/typed/hyperliquid
- Source Code: https://github.com/tribulnation/hyperliquid
from hyperliquid import Hyperliquid
async with Hyperliquid.ws(public=True) as client:
stream = await client.streams.trades('BTC')
async for msg in stream:
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
Release files for typed-hyperliquid 1.2.4
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-1.2.4.tar.gz | 94.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| typed_hyperliquid-1.2.4-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 317.2 kB
Release files / typed_hyperliquid-1.2.4.tar.gz
| Download URL | typed_hyperliquid-1.2.4.tar.gz |
|---|---|
| Size | 94.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0b0d5ae07aab29f27ce510a8f5b22147336cbbc7239df61c620767984319d322
|
|
BLAKE2b-256 checksum How to use checksums |
bd02339336c621497839764bb26483b4a0615a5c260195bb8cfc3cfa9c2e5164
|
| 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 Aug 18, 2026.
Transparency logRelease files / typed_hyperliquid-1.2.4-py3-none-any.whl
| Download URL | typed_hyperliquid-1.2.4-py3-none-any.whl |
|---|---|
| Size | 223.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
42f831bfc129f7a11edf41d30fa30b40adda70f2e70851264a84cc0a4938c3e1
|
|
BLAKE2b-256 checksum How to use checksums |
2c40e59490239b3c095a5b603be2d525104ca0291aad9eb395c6d507ab475d8f
|
| 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 Aug 18, 2026.
Transparency log