Skip to main content

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

Project description

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

Project details


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.0.tar.gz (50.2 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.0-py3-none-any.whl (111.6 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for typed_hyperliquid-1.1.0.tar.gz
Algorithm Hash digest
SHA256 eea11d771a82ad3e21ff4e4075a968732e9a8f77943dd2c6cd636d2b4e4db5ca
MD5 3b535d7e5267f1c104b4fe8b30e2e359
BLAKE2b-256 be2bd16296c0ecbab717464b5a8c1eaf0f267dfffa098c31621861d495bb7820

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for typed_hyperliquid-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 673b6032a9cf1f6fe2d27093c52506514e07d2a2ef3b3d6f7f92f024f58f9952
MD5 485f3d6284006c2b2d316bf357c1bb76
BLAKE2b-256 ca3aa54c20e43b05a518586a12b444c83a1261a617c14d4538cfcf23fdedce54

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 Pingdom Monitoring Sentry Error logging StatusPage Status page