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)
        print(result)


asyncio.run(main())

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

Metadata

Release files for async-hyperliquid 1.0.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.0.0
File Size Uploaded Provenance
async_hyperliquid-1.0.0.tar.gz 344.5 kB With provenance Details

Built distribution (wheel)

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

Total release size: 382.7 kB

Release files / async_hyperliquid-1.0.0.tar.gz

Download URL async_hyperliquid-1.0.0.tar.gz
Size 344.5 kB
Tags Source
SHA-256 checksum
How to use checksums
11240c69045e2a3b89cd51eabcfcef998b24064801d7ed13c34c50eeedb801a1
BLAKE2b-256 checksum
How to use checksums
2de54d75bc8bf83324f4e36082f129a8c72e0d08d79598c2c17dacd02f6df374
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 Aug 17, 2026.

Transparency log

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

Download URL async_hyperliquid-1.0.0-py3-none-any.whl
Size 38.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
bc4238b8e5bf8b6ed7f3edfcbd79c25438e2b75b0beac727491d628a626dc9b6
BLAKE2b-256 checksum
How to use checksums
17c061b323b4ee70c77b72a1960c93f2dc090e1d70c49a152d1e004b5ede4021
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 Aug 17, 2026.

Transparency log

Security for async-hyperliquid 1.0.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

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for async_hyperliquid-1.0.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 Aug 17, 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.

Release history Release notifications | RSS feed

This release

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