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.2.tar.gz
(45.2 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.2.tar.gz.
File metadata
- Download URL: typed_hyperliquid-1.2.2.tar.gz
- Upload date:
- Size: 45.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.15
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5efddda462cc5fe9d4f3d574d130a9e54f3b2937995e4dfdcfb537f841982ce7
|
|
| MD5 |
b8f8751a5af2b56aaac37f3783114ee9
|
|
| BLAKE2b-256 |
6ed0e395a968c9e0b46de094115557e7964d7862c11a15294e85a8c20b629060
|
File details
Details for the file typed_hyperliquid-1.2.2-py3-none-any.whl.
File metadata
- Download URL: typed_hyperliquid-1.2.2-py3-none-any.whl
- Upload date:
- Size: 108.4 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 |
11a48032aa026a81d7698cba1ed0d4813ab0569a505832414e2bcfc32ae03680
|
|
| MD5 |
25a1ee4e8a975672eb9df0dd51baf78e
|
|
| BLAKE2b-256 |
0d6d577178d94a3b4b9f75025c86d8a2c2fbb59440ff8fbc540e232c2d1ca59a
|