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.2.3.tar.gz
(47.9 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.2.3.tar.gz.
File metadata
- Download URL: typed_hyperliquid-1.2.3.tar.gz
- Upload date:
- Size: 47.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.15
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1428984dd51626e3f9499177b96a84a3bae221ee8d767da8691d4185ad3154b4
|
|
| MD5 |
9044d83462d192e05cd81aceb16a6f23
|
|
| BLAKE2b-256 |
dbd8dcf8028bcf217fc913b710c966da33b706c01a634b7a0d07836846a350cc
|
File details
Details for the file typed_hyperliquid-1.2.3-py3-none-any.whl.
File metadata
- Download URL: typed_hyperliquid-1.2.3-py3-none-any.whl
- Upload date:
- Size: 111.8 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 |
01b871a1f0292a4712a425ca5f794f01fd5a682bd7bfe18f862dac2d0ff8cb45
|
|
| MD5 |
bb09ad1ecfc6df5ea5520343c396eef9
|
|
| BLAKE2b-256 |
90a010e5a573ed60950ddb1775ef12e5ad7274a6dde89b136633fbc59f4b69c7
|