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.1.tar.gz (92.2 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.1-py3-none-any.whl (15.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: hyperliquid_cli-0.1.1.tar.gz
  • Upload date:
  • Size: 92.2 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.1.tar.gz
Algorithm Hash digest
SHA256 e16e9533de08b7ed130ef6f1883b728f5ddbcff80446829d00321f0fa1286fc5
MD5 e0fae80f433cd002aa851c3afe4ffd7f
BLAKE2b-256 06195b7555f56cac2dd62256d288fc1538a1125471c21da601e10e7091670a91

See more details on using hashes here.

Provenance

The following attestation bundles were made for hyperliquid_cli-0.1.1.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.1-py3-none-any.whl.

File metadata

File hashes

Hashes for hyperliquid_cli-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 f6508c173b68f6a43b213ec8458e5fae845cacecf29c17049385df3cece0617e
MD5 f50de6d7643f4ef901d1ee0fc4439ae3
BLAKE2b-256 81e3d23806f9b221ecdfba580b310253217104c057ab6d5e55b463245887c295

See more details on using hashes here.

Provenance

The following attestation bundles were made for hyperliquid_cli-0.1.1-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