Typed Hyperliquid
A fully typed, validated async client for the Hyperliquid API.
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
How To
- Place & Manage Orders
- Fetch Market Data
- Fetch Your Balances & Positions
- Fetch Your Transactions
- Listen To Your Trades
- Listen To Public Data