Skip to main content

Typed Hyperliquid

A fully typed, validated async client for the Hyperliquid API.

PyPI version Python versions Docs License



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, and client.streams.

Installation

pip install typed-hyperliquid

How To

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.9.tar.gz (39.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

typed_hyperliquid-1.1.9-py3-none-any.whl (102.3 kB view details)

Uploaded Python 3

File details

Details for the file typed_hyperliquid-1.1.9.tar.gz.

File metadata

  • Download URL: typed_hyperliquid-1.1.9.tar.gz
  • Upload date:
  • Size: 39.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.15

File hashes

Hashes for typed_hyperliquid-1.1.9.tar.gz
Algorithm Hash digest
SHA256 4a6764c9116d552e9d4f3e9b6b2df0f01ce631742fd859de87b8afecee56b8cd
MD5 a68f3d5b4ea1d0accce27d1293a4283d
BLAKE2b-256 5645a6085bd422745b9bd6658bbe1969a52b4a2fa5de1502983a5d9a02316249

See more details on using hashes here.

File details

Details for the file typed_hyperliquid-1.1.9-py3-none-any.whl.

File metadata

File hashes

Hashes for typed_hyperliquid-1.1.9-py3-none-any.whl
Algorithm Hash digest
SHA256 f6f6733b8468252ffe302534efad78c8f4f1dc0ddc2dff1fcd3c8d04cadce3fd
MD5 b19771f26e665c89ffef84a494f7047b
BLAKE2b-256 eabc958c4927f47c125b7048f27c9e37db9d70da728531be1f43e55660b13d74

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page