Skip to main content

Typed Hyperliquid

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

PyPI version Python versions Docs License



from typed_hyperliquid import Hyperliquid

async with Hyperliquid.new(public=True) as client:
  async with client.streams.trades('BTC') as trades:
    async for msg in trades:
      for trade in msg:
        print(trade['px'], trade['sz'], trade['side'])

Why Typed Hyperliquid?

  • 🎯 Precise Types: Typed endpoint inputs and responses, not dict/Any.
  • ✅ Runtime Validation: Responses validated by default, not just typed on paper.
  • ⚡ Async First: HTTP, request-response WebSocket, and subscription streams, built for concurrent workflows.
  • 📚 Full Surface: client.info, client.exchange, and client.streams -- perps, spot, and every documented info/exchange/stream endpoint, not just the popular ones.

Installation

pip install typed-hyperliquid

How To

Reference

Design Philosophy

Typed Hyperliquid follows the principles outlined in this blog post.

Details matter. Developer experience matters.

License

MIT — see LICENSE.

Metadata

Release files for typed-hyperliquid 2.6.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for typed-hyperliquid 2.6.0
File Size Uploaded Provenance Actions
typed_hyperliquid-2.6.0.tar.gz 110.0 kB With provenance Details for typed_hyperliquid-2.6.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for typed-hyperliquid 2.6.0
File Interpreter ABI Platform Actions
typed_hyperliquid-2.6.0-py3-none-any.whl Python 3 none any Details for typed_hyperliquid-2.6.0-py3-none-any.whl

Total release size: 373.8 kB

Release files / typed_hyperliquid-2.6.0.tar.gz

Download URL typed_hyperliquid-2.6.0.tar.gz
Size 110.0 kB
Tags Source
SHA-256 checksum
How to use checksums
299bcaccb9097f1e7603698ac5bea2f1f7cd5d6f95b9937f340a263de35178ad
BLAKE2b-256 checksum
How to use checksums
ff649f756858af02228034a2d0c823a660b004572a221d7a34dd7391c741fbab
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 19, 2026.

Transparency log

Release files / typed_hyperliquid-2.6.0-py3-none-any.whl

Download URL typed_hyperliquid-2.6.0-py3-none-any.whl
Size 263.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a795917a01c0b5ba1a706a07b2fb5faa8e45b9d0a73f320860a8e07ba21e6f0a
BLAKE2b-256 checksum
How to use checksums
171c97535a1ce1ef5d344f1f5aec831ddcbff37113a35ea1e717333bbd0c9807
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 19, 2026.

Transparency log

Security for typed-hyperliquid 2.6.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for typed_hyperliquid-2.6.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 19, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

2.6.0 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page