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.2.tar.gz
(50.4 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.2.tar.gz.
File metadata
- Download URL: typed_hyperliquid-1.1.2.tar.gz
- Upload date:
- Size: 50.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3e06cf87741820c065e5e350ae0602f18c86b85f227adeb8991aa1e607874c71
|
|
| MD5 |
2022a72990c9ab6f4a99bd5675c5222a
|
|
| BLAKE2b-256 |
d1ff50022982848c5cec4b53755db5bbd58c25254b49e2fadccc327b601fa4e2
|
File details
Details for the file typed_hyperliquid-1.1.2-py3-none-any.whl.
File metadata
- Download URL: typed_hyperliquid-1.1.2-py3-none-any.whl
- Upload date:
- Size: 111.6 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 |
0aac1549c1f65b6ccb9172abb70f12fe9bdad4394bd360b1aa1987fcc5735d4e
|
|
| MD5 |
30ead4d07bbeed631b4d1e61061b6b0f
|
|
| BLAKE2b-256 |
e8e355e47bd48112fcfad28a7be2c9c28605da0c260b7f34b7e27cb03bf3b252
|