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.

Release files for typed-hyperliquid 2.2.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.2.0
File Size Uploaded
typed_hyperliquid-2.2.0.tar.gz 108.5 kB Details

Built distribution (wheel)

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

Total release size: 364.8 kB

Release files / typed_hyperliquid-2.2.0.tar.gz

Download URL typed_hyperliquid-2.2.0.tar.gz
Size 108.5 kB
Tags Source
SHA-256 checksum
How to use checksums
4414ee30c2f3b09664e11c884e1a40583dbfc5bc35f9a752ddf09981f2bf2068
BLAKE2b-256 checksum
How to use checksums
3a20d4dcbb91cb5f0c8dff4c6365e0374449970ad93ebf4a8087a66698d0ef1b
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 Sep 20, 2026.

Transparency log

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

Download URL typed_hyperliquid-2.2.0-py3-none-any.whl
Size 256.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ce4ca9c2e5928fc711cac7e48a7d1354b793f53bb486e7b00dde3a06d3f7f1c4
BLAKE2b-256 checksum
How to use checksums
d9cecdbd80d2eba673f8a9cd354d0ea3407c4cfdf6393f6744aceee7df44fd06
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 Sep 20, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

2.2.0 This release

2 release files

2.1.3

2 release files

2.1.2

2 release files

2.1.1

2 release files

2.1.0

2 release files

2.0.0

2 release files

1.2.5

2 release files

1.2.4

2 release files

1.2.3

2 release files

1.2.2

2 release files

1.2.1

2 release files

1.2.0

2 release files

1.1.9

2 release files

1.1.8

2 release files

1.1.7

2 release files

1.1.6

2 release files

1.1.5

2 release files

1.1.4

2 release files

1.1.2

2 release files

1.1.1

2 release files

1.1.0

2 release files

1.0.4

2 release files

1.0.3

2 release files

1.0.2

2 release files

1.0.1

2 release files

1.0.0

2 release files

0.1.4

2 release files

0.1.3

2 release files

0.1.1

2 release files

0.1.0

2 release files

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