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.1.tar.gz
(40.5 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.1.tar.gz.
File metadata
- Download URL: typed_hyperliquid-1.2.1.tar.gz
- Upload date:
- Size: 40.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.15
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f68f61858ef7d83c59e81f04646fca7c44903a1977abd105f2d9c4ec3d468f86
|
|
| MD5 |
4cdb139e2f24add4134a614800c51e08
|
|
| BLAKE2b-256 |
fd454f05adff2a77eb4407dd84c29e37e5adcc93489f7c0a7a7a0b582a64aba9
|
File details
Details for the file typed_hyperliquid-1.2.1-py3-none-any.whl.
File metadata
- Download URL: typed_hyperliquid-1.2.1-py3-none-any.whl
- Upload date:
- Size: 103.6 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 |
9c8a9c9a4119eaae9da9080972da504b84a24718cf998fa4990f7e4d039b41e3
|
|
| MD5 |
38253d1d63b39e6fd41ef6c7bfa4028b
|
|
| BLAKE2b-256 |
377625b182b50665ae816b873d0cfc150e5202cac2e311c3e20818e386a5c3a8
|