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.8.tar.gz
(39.0 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.8.tar.gz.
File metadata
- Download URL: typed_hyperliquid-1.1.8.tar.gz
- Upload date:
- Size: 39.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.15
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
99b97790696826c25a5f9763d8de6d0af32883af28a68133d665f88b9cdbb6c9
|
|
| MD5 |
26918a8ee1e353bcd32e71654a6096e9
|
|
| BLAKE2b-256 |
74c98e12b007f7c07681d0066a9a2866a8933b1a3784d4f8c76c48e739d109b1
|
File details
Details for the file typed_hyperliquid-1.1.8-py3-none-any.whl.
File metadata
- Download URL: typed_hyperliquid-1.1.8-py3-none-any.whl
- Upload date:
- Size: 101.1 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 |
f916bc207c9586c97bcf2c7f8e868f50f58f39d828fa826be083a41ad9e06114
|
|
| MD5 |
25efb9a72329bbc5669af3d5524b8bd2
|
|
| BLAKE2b-256 |
f8551d5dc200c82c284f58b5c455de0bc1ea17bc9d240260f5138630b093df46
|