A fully typed, validated async client for the Hyperliquid API.
- Documentation: https://hyperliquid.tribulnation.com
- 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.
- ✅ Runtime Validation: Validated responses by default.
- ⚡ Async First: HTTP, WebSocket RPC, and subscriptions.
- 📚 Full API Surface:
client.info,client.exchange, andclient.streams.
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
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
typed_hyperliquid-1.1.9.tar.gz
(39.7 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file typed_hyperliquid-1.1.9.tar.gz.
File metadata
- Download URL: typed_hyperliquid-1.1.9.tar.gz
- Upload date:
- Size: 39.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.15
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4a6764c9116d552e9d4f3e9b6b2df0f01ce631742fd859de87b8afecee56b8cd
|
|
| MD5 |
a68f3d5b4ea1d0accce27d1293a4283d
|
|
| BLAKE2b-256 |
5645a6085bd422745b9bd6658bbe1969a52b4a2fa5de1502983a5d9a02316249
|
File details
Details for the file typed_hyperliquid-1.1.9-py3-none-any.whl.
File metadata
- Download URL: typed_hyperliquid-1.1.9-py3-none-any.whl
- Upload date:
- Size: 102.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.15
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f6f6733b8468252ffe302534efad78c8f4f1dc0ddc2dff1fcd3c8d04cadce3fd
|
|
| MD5 |
b19771f26e665c89ffef84a494f7047b
|
|
| BLAKE2b-256 |
eabc958c4927f47c125b7048f27c9e37db9d70da728531be1f43e55660b13d74
|