A fully typed, validated async client for the Hyperliquid API.
Project description
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
Project details
Release history Release notifications | RSS feed
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.4.tar.gz
(50.6 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.4.tar.gz.
File metadata
- Download URL: typed_hyperliquid-1.1.4.tar.gz
- Upload date:
- Size: 50.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
872e87a12133326b40a45b822249583a983743c87340eb66dc1238c2c16e0d3f
|
|
| MD5 |
34a81c0261536cd84bfeded1d9b5132d
|
|
| BLAKE2b-256 |
4fa3e9d6fef5d2cb95ecf34e7b3bd1b52d90eddf393b0888dcf6aab2ecfe6f4a
|
File details
Details for the file typed_hyperliquid-1.1.4-py3-none-any.whl.
File metadata
- Download URL: typed_hyperliquid-1.1.4-py3-none-any.whl
- Upload date:
- Size: 112.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a092c33a4daecafc949d52af35ff6741662c9de6868ea7c509440f90e3f825f0
|
|
| MD5 |
2363722782493d0a12a31ccfcc5b34e0
|
|
| BLAKE2b-256 |
09e017df0476fc7fd4c5266fdff9d4e4c1d9fcf9c5747a4276d91b102ffa168f
|