Skip to content

ekremrn/hyperliquid-python

Repository files navigation

hyperliquid-python

Complete Hyperliquid REST + WebSocket toolkit with secure signing, pagination helpers, and runnable examples.

Installation

python -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt
pip install -e .

Environment

Copy .env.example to .env and populate the required values. Toggle NETWORK=testnet to target the sandbox URLs.

Quickstart

from dotenv import load_dotenv
from hyperliquid_rest import InfoClient, ExchangeClient

load_dotenv()
info = InfoClient(network="testnet")
print(info.get_all_mids())

exchange = ExchangeClient(
    account="0x...",
    private_key="0x...",
    network="testnet",
)
print(exchange.get_account_summary())

See examples/ for workflow scripts, docs/tutorial.md for a guided run, and docs/api_reference.md for API coverage.

Tests

pytest

Note: This library was generated with Codex automation to speed up development. While the critical flows are covered, please review the code and test thoroughly before trading with live capital—bugs or breaking API changes may still exist.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages