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.7.tar.gz
(38.8 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.7.tar.gz.
File metadata
- Download URL: typed_hyperliquid-1.1.7.tar.gz
- Upload date:
- Size: 38.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.15
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
12a1b4e0e7fd234bc6c5082aa650fb348620debb1cf336d8ff467fa6e62987e5
|
|
| MD5 |
fec8d9deafeebea98e7b63ce2d760cf2
|
|
| BLAKE2b-256 |
f2d26b85ca731c7c3ec7c7f0bd7940d5560e46c222ef5ca2db0d49f40f29f6c1
|
File details
Details for the file typed_hyperliquid-1.1.7-py3-none-any.whl.
File metadata
- Download URL: typed_hyperliquid-1.1.7-py3-none-any.whl
- Upload date:
- Size: 100.9 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 |
7517193690abe056e6042ae37db78f85a7bb4a613fc55f8fb5a7085445b90985
|
|
| MD5 |
465420aedfbb6f60d180452c4b828a76
|
|
| BLAKE2b-256 |
dce7bb2167c462e04e1911af0012d07e1c6fe7e06c0b4c6b71316058efca4fab
|