Loading...
Loading...
Place / cancel / query HTX USDT-M futures orders; adjust leverage and position mode; set trigger and TP/SL strategy orders. HIGH RISK — all write operations require explicit user confirmation.
npx skill4agent add htx-exchange/htx-skills-hub htx-futures-tradinghtx-cli$PATH$HTX_CLI_BIN--jsonhtx-cli config set-key <AccessKeyId>
htx-cli config set-secret <SecretKey>https://api.hbdm.com| Field | Value |
|---|---|
| Action | place / cancel / cancel-all / flash-close / leverage-change / position-mode / trigger / TP-SL |
| Contract | e.g. |
| Mode | isolated / cross |
| Direction | buy (long) / sell (short); open / close |
| Quantity | contracts |
| Order type | limit / market / post-only / FOK / IOC |
| Price | limit price, omit for market |
| Leverage | current and new (when changing) |
| Estimated liquidation price | critical for user to see before confirming |
/linear-swap-apiIC*| # | Method | Path | CLI | Mode | RW |
|---|---|---|---|---|---|
| 1 | POST | | | I | W |
| 2 | POST | | | C | W |
| 3 | POST | | | C | W |
| 4 | POST | | | I | W |
| 5 | POST | | | C | W |
| 6 | POST | | | I | W |
| 7 | POST | | | C | W |
| 8 | POST | | | I | W |
| 9 | POST | | | C | W |
| 10 | POST | | | I | W |
| 11 | POST | | | C | W |
| 12 | POST | | | I | W |
| 13 | POST | | | C | W |
| 14 | POST | | | * | W |
| # | Method | Path | CLI | Mode |
|---|---|---|---|---|
| 1 | POST | | | C |
| 2 | POST | | | I |
| 3 | POST | | | C |
| 4 | POST | | | I |
| 5 | POST | | | C |
| 6 | POST | | | I |
| 7 | POST | | | C |
| 8 | POST | | | I |
| 9 | POST | | | C |
| 10 | POST | | | I |
| 11 | POST | | | C |
| 12 | POST | | | I |
| 13 | POST | | | C |
| 14 | POST | | | I |
| 15 | POST | | | C |
| 16 | GET | | | * |
| # | Method | Path | CLI | Mode | RW |
|---|---|---|---|---|---|
| 1 | POST | | | I | W |
| 2 | POST | | | C | W |
| 3 | POST | | | I | W |
| 4 | POST | | | C | W |
| 5 | POST | | | I | W |
| 6 | POST | | | C | W |
| 7 | POST | | | I | R |
| 8 | POST | | | C | R |
| 9 | POST | | | I | R |
| 10 | POST | | | C | R |
| # | Method | Path | CLI | Mode | RW |
|---|---|---|---|---|---|
| 1 | POST | | | I | W |
| 2 | POST | | | C | W |
| 3 | POST | | | I | W |
| 4 | POST | | | C | W |
| 5 | POST | | | I | W |
| 6 | POST | | | C | W |
| 7 | POST | | | I | R |
| 8 | POST | | | C | R |
| 9 | POST | | | I | R |
| 10 | POST | | | C | R |
futures-market# 1. Price check
htx-cli futures market funding-rate BTC-USDT --json
# 2. Current position / available
htx-cli futures account info --contract-code BTC-USDT --json
# 3. User confirms preview, then:
htx-cli futures order place \
--contract-code BTC-USDT --direction buy --offset open \
--lever-rate 10 --volume 1 --price 85000 \
--order-price-type limit --json
# 4. Monitor
htx-cli futures order list --contract-code BTC-USDT --jsonreferences/authentication.mdreferences/order-types.md