Skip to main content

Hyperliquid trading and query CLI (HIP-3 supported)

Project description

1m-trade

Hyperliquid trading and query CLI (HIP-3 supported).

Install

pip install 1m-trade

Usage

The CLI command is hl1m.

It loads environment variables from:

  1. OPENCLAW_STATE_DIR (if set)
  2. OPENCLAW_HOME/.openclaw/.1m-trade/.env
  3. ~/.openclaw/.1m-trade/.env

Query examples

hl1m query-user-state
hl1m query-open-orders
hl1m query-meta
hl1m query-kline --coin BTC --period 1m --start 1700000000000 --end 1700003600000

Trading examples

需要设置私钥环境变量(例如 HYPERLIQUID_PRIVATE_KEY,或 HYPERLIQUID_PRIVATE_KEY_ENC + HYPERLIQUID_PK_ENC_PASSWORD)。

hl1m place-order --coin BTC --is-buy true --qty 0.01 --limit-px 60000 --tif Gtc
hl1m market-order --coin BTC --is-buy true --qty 0.01 --slippage 0.02
hl1m cancel-order --coin BTC
hl1m update-leverage --coin BTC --leverage 5 --is-cross true
hl1m market-close --coin BTC --qty 0.01 --slippage 0.02

Wallet examples

hl1m create-wallet
hl1m init-wallet --pri_key 0xYourPrivateKey
hl1m init-wallet --address 0xYourPublicAddress --pri_key 0xYourPrivateKey
hl1m init_wallet --address 0xYourPublicAddress --pri_key 0xYourPrivateKey
hl1m send-private-key --target openclaw_target
hl1m start-listener
hl1m register-wallet 0xYourDepositAddress

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

1m_trade-0.3.0.tar.gz (14.8 kB view details)

Uploaded Source

Built Distribution

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

1m_trade-0.3.0-py3-none-any.whl (17.3 kB view details)

Uploaded Python 3

File details

Details for the file 1m_trade-0.3.0.tar.gz.

File metadata

  • Download URL: 1m_trade-0.3.0.tar.gz
  • Upload date:
  • Size: 14.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.5

File hashes

Hashes for 1m_trade-0.3.0.tar.gz
Algorithm Hash digest
SHA256 41c89125c82a23647a7bd2e9df36bab94e482706b8f78eb7b7456ea33360fd26
MD5 007dba83893aa1fe9a1c0b3726e73cca
BLAKE2b-256 ee5f1527d066030a1a756e23409aa5878d979a73ba87ce0d96b9d132e97ef2f2

See more details on using hashes here.

File details

Details for the file 1m_trade-0.3.0-py3-none-any.whl.

File metadata

  • Download URL: 1m_trade-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 17.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.5

File hashes

Hashes for 1m_trade-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 1b1e753ad4e2c86c67836b4ad9d04bbc088a3515ec46b5ee1fa00fe9d3ea89b8
MD5 83fd90a4842bb3b1b21ab923c434e2df
BLAKE2b-256 e62921b81db1733e237defdfa945521b551db89a5502c42aa1adbda70b884097

See more details on using hashes here.

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