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.2.3.tar.gz (47.9 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.2.3-py3-none-any.whl (111.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: typed_hyperliquid-1.2.3.tar.gz
  • Upload date:
  • Size: 47.9 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.2.3.tar.gz
Algorithm Hash digest
SHA256 1428984dd51626e3f9499177b96a84a3bae221ee8d767da8691d4185ad3154b4
MD5 9044d83462d192e05cd81aceb16a6f23
BLAKE2b-256 dbd8dcf8028bcf217fc913b710c966da33b706c01a634b7a0d07836846a350cc

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for typed_hyperliquid-1.2.3-py3-none-any.whl
Algorithm Hash digest
SHA256 01b871a1f0292a4712a425ca5f794f01fd5a682bd7bfe18f862dac2d0ff8cb45
MD5 bb09ad1ecfc6df5ea5520343c396eef9
BLAKE2b-256 90a010e5a573ed60950ddb1775ef12e5ad7274a6dde89b136633fbc59f4b69c7

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