Skip to main content

Agent-first CLI for Hyperliquid trading

Reason this release was yanked:

Replaced by regard-cli

Project description

hyperliquid-cli

Agent-first CLI for Hyperliquid perpetual futures trading. Thin Python wrapper over hyperliquid-python-sdk.

Install

uv tool install hyperliquid-cli

Usage

# Read commands (no auth needed)
hl prices BTC ETH
hl book BTC --depth 10
hl assets TSLA
hl funding BTC --history
hl candles BTC 1h --limit 50

# Account commands (needs HL_PRIVATE_KEY or --address)
hl status
hl balance
hl positions
hl orders
hl fills

# Write commands (needs HL_PRIVATE_KEY)
hl order BTC buy 0.1 --market
hl order BTC buy 0.1 95000 --tp 100000 --sl 90000
hl cancel 77738308
hl cancel-all BTC
hl leverage BTC 10

Auth

Set HL_PRIVATE_KEY env var with your Hyperliquid API wallet key (can trade but cannot withdraw).

Read-only commands work without auth using --address.

Design

  • JSON-only output (stdout), debug/warnings to stderr
  • Rich exit codes (0=success, 1=input, 2=auth, 3=API, 4=asset, 5=rejected)
  • Structured errors with recovery hints
  • Field projection via --fields
  • HIP-3 asset auto-resolution (e.g. TSLAxyz:TSLA)
  • Trade logging to data/trades.jsonl

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

hyperliquid_cli-0.1.0.tar.gz (92.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

hyperliquid_cli-0.1.0-py3-none-any.whl (16.0 kB view details)

Uploaded Python 3

File details

Details for the file hyperliquid_cli-0.1.0.tar.gz.

File metadata

  • Download URL: hyperliquid_cli-0.1.0.tar.gz
  • Upload date:
  • Size: 92.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for hyperliquid_cli-0.1.0.tar.gz
Algorithm Hash digest
SHA256 db2f86fc0e339ceea8a271b4e5c7c3c628be9ed5eec6fd4b2e0e32e043d95bd7
MD5 e2e7f797247b6f73494d95c40e18b6ea
BLAKE2b-256 c455da1472dbe7ca97fa7f3025bfb52888f78a3e9b153918ec05c05db42ad818

See more details on using hashes here.

Provenance

The following attestation bundles were made for hyperliquid_cli-0.1.0.tar.gz:

Publisher: publish.yml on akegaviar/hyperliquid-cli

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file hyperliquid_cli-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for hyperliquid_cli-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ff06905aefcf4050ef67d16819c7799ee8bab7e9c408e4373c41b16d6f954c29
MD5 813e67ca6e44183b131d3ff4435a9251
BLAKE2b-256 f68871c41592bad7038a246b8b9c6bbba844f8013983cd51dc9a993b97fc069f

See more details on using hashes here.

Provenance

The following attestation bundles were made for hyperliquid_cli-0.1.0-py3-none-any.whl:

Publisher: publish.yml on akegaviar/hyperliquid-cli

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page