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:
OPENCLAW_STATE_DIR(if set)OPENCLAW_HOME/.openclaw/.1m-trade/.env~/.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 init-wallet --pri_key 0xYourPrivateKey
hl1m init-wallet --address 0xYourPublicAddress --pri_key 0xYourPrivateKey
hl1m init_wallet --address 0xYourPublicAddress --pri_key 0xYourPrivateKey
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.4.0.tar.gz
(8.9 kB
view details)
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
1m_trade-0.4.0-py3-none-any.whl
(11.0 kB
view details)
File details
Details for the file 1m_trade-0.4.0.tar.gz.
File metadata
- Download URL: 1m_trade-0.4.0.tar.gz
- Upload date:
- Size: 8.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e876bdb97c01f10e1d8f722784e1b2e26de5f162155323dd11d8fcccdf8734d4
|
|
| MD5 |
f8c9143bb91fced57581446530493368
|
|
| BLAKE2b-256 |
5830c70bdefa96dae88232eef4edbdaf6950a491957c1ba83c9ca1df81c03314
|
File details
Details for the file 1m_trade-0.4.0-py3-none-any.whl.
File metadata
- Download URL: 1m_trade-0.4.0-py3-none-any.whl
- Upload date:
- Size: 11.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cf3ed51a82efb2293be93cc46ef727fe0d2410300644b31c5e3556da5ffcd8e1
|
|
| MD5 |
1fe614a11266b544a44325a7c21c693c
|
|
| BLAKE2b-256 |
701dd1ebabd49de894939debb0d7476d6bd4c3c2cf26e6a593d5554bc8c9fd46
|