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.
TSLA→xyz:TSLA) - Trade logging to
data/trades.jsonl
License
MIT
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e16e9533de08b7ed130ef6f1883b728f5ddbcff80446829d00321f0fa1286fc5
|
|
| MD5 |
e0fae80f433cd002aa851c3afe4ffd7f
|
|
| BLAKE2b-256 |
06195b7555f56cac2dd62256d288fc1538a1125471c21da601e10e7091670a91
|
Provenance
The following attestation bundles were made for hyperliquid_cli-0.1.1.tar.gz:
Publisher:
publish.yml on akegaviar/hyperliquid-cli
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
hyperliquid_cli-0.1.1.tar.gz -
Subject digest:
e16e9533de08b7ed130ef6f1883b728f5ddbcff80446829d00321f0fa1286fc5 - Sigstore transparency entry: 1114929990
- Sigstore integration time:
-
Permalink:
akegaviar/hyperliquid-cli@b7ccba1d582fc01d4e9e6200f942b271500d7018 -
Branch / Tag:
refs/tags/v0.1.1 - Owner: https://github.com/akegaviar
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@b7ccba1d582fc01d4e9e6200f942b271500d7018 -
Trigger Event:
push
-
Statement type:
File details
Details for the file hyperliquid_cli-0.1.1-py3-none-any.whl.
File metadata
- Download URL: hyperliquid_cli-0.1.1-py3-none-any.whl
- Upload date:
- Size: 15.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f6508c173b68f6a43b213ec8458e5fae845cacecf29c17049385df3cece0617e
|
|
| MD5 |
f50de6d7643f4ef901d1ee0fc4439ae3
|
|
| BLAKE2b-256 |
81e3d23806f9b221ecdfba580b310253217104c057ab6d5e55b463245887c295
|
Provenance
The following attestation bundles were made for hyperliquid_cli-0.1.1-py3-none-any.whl:
Publisher:
publish.yml on akegaviar/hyperliquid-cli
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
hyperliquid_cli-0.1.1-py3-none-any.whl -
Subject digest:
f6508c173b68f6a43b213ec8458e5fae845cacecf29c17049385df3cece0617e - Sigstore transparency entry: 1114930009
- Sigstore integration time:
-
Permalink:
akegaviar/hyperliquid-cli@b7ccba1d582fc01d4e9e6200f942b271500d7018 -
Branch / Tag:
refs/tags/v0.1.1 - Owner: https://github.com/akegaviar
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@b7ccba1d582fc01d4e9e6200f942b271500d7018 -
Trigger Event:
push
-
Statement type: