Skip to main content

AI trading partner for the unified speculator — Hyperliquid + Polymarket

Project description

regard-cli

AI trading partner for the unified speculator. Multi-venue trading CLI consumed by the regard-computer Claude Code skill.

Install

uv tool install regard-cli

Usage

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

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

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

Auth

Set HYPERLIQUID_AGENT_KEY env var with your Hyperliquid agent wallet key (can trade, cannot withdraw). Master address auto-resolved via userRole API.

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

Design

  • Venue-first sub-commands (regard hl, regard poly, ...)
  • Output envelope: {"ok": true, "data": ..., "meta": {"timestamp": ...}}
  • Structured errors with type/code/message, recovery hints, retryable flag
  • Exit codes: 0=success, 2=validation, 3=auth, 4=venue, 5=rate_limit, 6=network
  • Field projection via --fields
  • HIP-3 asset auto-resolution (e.g. TSLAxyz:TSLA)
  • CLI-first, MCP-ready — every command maps 1:1 to an MCP tool definition

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

regard_cli-0.21.0rc1.tar.gz (522.6 kB view details)

Uploaded Source

Built Distribution

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

regard_cli-0.21.0rc1-py3-none-any.whl (172.2 kB view details)

Uploaded Python 3

File details

Details for the file regard_cli-0.21.0rc1.tar.gz.

File metadata

  • Download URL: regard_cli-0.21.0rc1.tar.gz
  • Upload date:
  • Size: 522.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for regard_cli-0.21.0rc1.tar.gz
Algorithm Hash digest
SHA256 8a08865ac58e4ff58edfe8547da979da54e81bcabd5eb6100382faf6546b3fda
MD5 4b399791fc4613ac09dbcdb99051ecfd
BLAKE2b-256 bfab4496e9cbfa983d98a4da6ccf42ba6ff423955508cdaa8c975daaf13e6cb6

See more details on using hashes here.

Provenance

The following attestation bundles were made for regard_cli-0.21.0rc1.tar.gz:

Publisher: publish.yml on akegaviar/regard-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 regard_cli-0.21.0rc1-py3-none-any.whl.

File metadata

  • Download URL: regard_cli-0.21.0rc1-py3-none-any.whl
  • Upload date:
  • Size: 172.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for regard_cli-0.21.0rc1-py3-none-any.whl
Algorithm Hash digest
SHA256 2a064fb727f033d15d8877149bb544361d0a4328d6689f6238a311d8c13ab0d6
MD5 b4167b3dbf7a5bb27405357693538f90
BLAKE2b-256 06022188cf2a59442e23a3f39df0d54f98752f6c10badeaad7fabedc5e573706

See more details on using hashes here.

Provenance

The following attestation bundles were made for regard_cli-0.21.0rc1-py3-none-any.whl:

Publisher: publish.yml on akegaviar/regard-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