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.6.tar.gz
(50.7 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.6.tar.gz.
File metadata
- Download URL: typed_hyperliquid-1.1.6.tar.gz
- Upload date:
- Size: 50.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
13d63ffdb113237eff5d8ed6de6b2f3b36463dbd97fc42b99841da8ca8cb0f73
|
|
| MD5 |
0a2f4ad0d83fbbb1fa45369700ac4be2
|
|
| BLAKE2b-256 |
44765094ce1a13967b8629b2801254929bafba8a81b6e1a1905da5e349895564
|
File details
Details for the file typed_hyperliquid-1.1.6-py3-none-any.whl.
File metadata
- Download URL: typed_hyperliquid-1.1.6-py3-none-any.whl
- Upload date:
- Size: 112.4 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 |
cc6abf6dac93a637f092a4ea561e789c4804f1f17f155d13453a5a31ff3e121d
|
|
| MD5 |
9dfeac3a0aecc31aaf24ec38b2e71a84
|
|
| BLAKE2b-256 |
6a4f6f5358914bb65f1b4ed897eba5cc5cb94d5576307749f2e06e8c956e492e
|