Skip to main content

Async Hyperliquid

CI Documentation Status PyPI

async-hyperliquid is a typed, asynchronous Python client for the Hyperliquid REST API. It provides credential-free market and account queries through InfoClient, plus authenticated order workflows through AsyncHyperliquid. The client uses aiohttp, keeps protocol-shaped responses as TypedDict, and supports explicit mainnet and testnet routing.

Installation

pip install async-hyperliquid

Read market data

import asyncio

from async_hyperliquid import InfoClient
from async_hyperliquid.types import Network


async def main() -> None:
    async with InfoClient(network=Network.MAINNET) as client:
        print(await client.mid_price("BTC"))


asyncio.run(main())

Place a testnet order

Use a dedicated API-wallet key and start on testnet. This submits a signed market order.

import asyncio
import os

from async_hyperliquid import AsyncHyperliquid
from async_hyperliquid.types import Network


async def main() -> None:
    async with AsyncHyperliquid(
        os.environ["HL_ACCOUNT_ADDRESS"],
        os.environ["HL_SIGNING_KEY"],
        network=Network.TESTNET,
    ) as client:
        result = await client.place_order("BTC", True, 0.001, 0, is_market=True)
        if result["status"] == "err":
            raise RuntimeError(result["response"])
        status = result["response"]["data"]["statuses"][0]
        if isinstance(status, dict) and "error" in status:
            raise RuntimeError(status["error"])
        print(status)


asyncio.run(main())

Learn more in the Read the Docs documentation, API reference, migration guide, changelog, and license.

Benchmarks

The overall signing benchmark values below are from a parity-gated 1.0.0rc1 local CPU reference run. They are not network latency or exchange throughput. See the detailed benchmarks/README.md manual for the full methodology, parity gate, and per-operation results.

Library Geometric-mean throughput Relative to SDK
async-hyperliquid 24,641 ops/s 1.460x
Official SDK 16,874 ops/s 1.000x
CCXT 803 ops/s 0.0476x

The geometric mean gives each of the five operations equal weight, preventing the faster action_hash workload from dominating the score.

Metadata

Release files for async-hyperliquid 1.3.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 async-hyperliquid 1.3.0
File Size Uploaded Provenance Actions
async_hyperliquid-1.3.0.tar.gz 368.6 kB With provenance Details for async_hyperliquid-1.3.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for async-hyperliquid 1.3.0
File Interpreter ABI Platform Actions
async_hyperliquid-1.3.0-py3-none-any.whl Python 3 none any Details for async_hyperliquid-1.3.0-py3-none-any.whl

Total release size: 408.2 kB

Release files / async_hyperliquid-1.3.0.tar.gz

Download URL async_hyperliquid-1.3.0.tar.gz
Size 368.6 kB
Tags Source
SHA-256 checksum
How to use checksums
e236d41d11bc47283620a4f4a559ee329ca5d263771adef805a87c0a027aec6e
BLAKE2b-256 checksum
How to use checksums
9eb9fae9e2fe728240057b740e890fc781d933233aa4c690c3567a63c7a0f2cd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

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 Nov 9, 2026.

Transparency log

Release files / async_hyperliquid-1.3.0-py3-none-any.whl

Download URL async_hyperliquid-1.3.0-py3-none-any.whl
Size 39.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
637148056f73a62d8163e7f3bf0b2c254bd386ee63efaf0dbf10d2b60db5a5d7
BLAKE2b-256 checksum
How to use checksums
b5a6d12c35bc76398963a71dd53999adecbd21bd962107c8ece40807fd02bce7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

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 Nov 9, 2026.

Transparency log

Security for async-hyperliquid 1.3.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 async_hyperliquid-1.3.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 Nov 9, 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

1.3.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