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.0.tar.gz
(40.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.0.tar.gz.
File metadata
- Download URL: typed_hyperliquid-1.2.0.tar.gz
- Upload date:
- Size: 40.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 |
ba12f3f5b15ddf6581b62def8fcf499782766de13c2dc018ac223022264d5b38
|
|
| MD5 |
b5070baee7b2befbb7c6afa5939ac095
|
|
| BLAKE2b-256 |
e5f0391fae279164b283cd79ab081c628cbc562a3111fbf8b47c76086c0e1cd5
|
File details
Details for the file typed_hyperliquid-1.2.0-py3-none-any.whl.
File metadata
- Download URL: typed_hyperliquid-1.2.0-py3-none-any.whl
- Upload date:
- Size: 103.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 |
19a00ff5318904a21b3ecd7612aa8d38e4cdca0000fb012a135402ee2803b315
|
|
| MD5 |
121d2df53e1eaf2e78bb7d4327382ec5
|
|
| BLAKE2b-256 |
5bf48ffe8da2f4ae7886b1cd1a89ba244ef3515544b65ad055ce8ab7e15bdcbc
|