一键导入
htx-spot-trading
HTX spot trading — limit / market orders / cancel / modify / order query / margin lending.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
HTX spot trading — limit / market orders / cancel / modify / order query / margin lending.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Multi-signal pressure analysis on HTX USDT-M perpetuals — combines funding rate, OI, elite long/short ratio, recent liquidations, and basis into a unified pressure score with squeeze-risk verdict. Public, no API key required.
Top-trader long/short ratio on HTX USDT-M perpetuals — both account-based and position-based ratios, the core sentiment signal that distinguishes "smart money" from retail. Public, no API key.
HTX USDT-M perpetual funding rate — current / market-wide batch / history / estimated next-period klines.
HTX USDT-M perpetual futures account — balance / positions / leverage tiers / adjustment factors / unified account type switching.
HTX USDT-M perpetual futures core market data — contract info / klines / ticker / order book / index price / system status.
HTX USDT-M perpetual futures order management — open / close / TP/SL / trigger orders / modify / cancel.
| name | htx/spot-trading |
| version | 2.0.0 |
| description | HTX spot trading — limit / market orders / cancel / modify / order query / margin lending. |
| auth | true |
| risk | high |
Place and cancel spot orders, modify and query orders, and use margin lending.
WARNING: High-risk write skill. Before every order / cancel / borrow, the AI Agent must show the user the full parameters (symbol, side, type, price, amount) and obtain explicit manual confirmation.
| # | Method | Endpoint | Description |
|---|---|---|---|
| 1 | POST | /v1/order/orders/place | Place a single order (limit / market / TP-SL / IOC / FOK) |
| 2 | POST | /v1/order/batch-orders | Batch place orders (max 10) |
| 3 | POST | /v1/order/orders/{order-id}/submitcancel | Cancel by order ID |
| 4 | POST | /v1/order/orders/submitCancelClientOrder | Cancel by client-order-id |
| 5 | POST | /v1/order/orders/batchcancel | Batch cancel (by order ID list) |
| 6 | POST | /v1/order/orders/batchCancelOpenOrders | Cancel all open orders (by symbol) |
| # | Method | Endpoint | Description |
|---|---|---|---|
| 7 | GET | /v1/order/openOrders | Current open orders |
| 8 | GET | /v1/order/orders/{order-id} | Single-order detail |
| 9 | GET | /v1/order/orders | Historical orders (by time window) |
| 10 | GET | /v1/order/matchresults | Historical trade detail |
| # | Method | Endpoint | Description |
|---|---|---|---|
| 11 | POST | /v1/margin/orders | Borrow margin funds (write) |
{
"account-id": "<spot-account-id>",
"symbol": "btcusdt",
"type": "buy-limit | sell-limit | buy-market | sell-market | buy-ioc | sell-ioc | buy-limit-fok | sell-limit-fok",
"amount": "0.001",
"price": "65000.00",
"client-order-id": "<optional 32 chars>",
"source": "spot-api"
}
buy-limit / sell-limit: limit order, must include pricebuy-market / sell-market: market order. Buy amount = USDT amount; sell amount = base currency quantitybuy-ioc / sell-ioc: immediate-or-cancel; cancels the remainderbuy-limit-fok / sell-limit-fok: fill-or-killhtx-cli spot trading place \
--account-id <id> \
--symbol btcusdt --type buy-limit \
--price 65000 --amount 0.001 \
--json
# market buy: amount = quote currency (USDT) amount
htx-cli spot trading place \
--account-id <id> \
--symbol btcusdt --type buy-market \
--amount 100 \
--json
htx-cli spot trading cancel <order-id> --json
htx-cli spot call /v1/order/orders/batchCancelOpenOrders \
--method POST --auth \
--body '{"account-id":"<id>","symbol":"btcusdt"}' --json
htx-cli spot trading open-orders --symbol btcusdt --json
Before every order, the AI Agent MUST:
For every cancel:
For every borrow:
account-frozen — account frozen, halt operationorder-amountmin-error — amount below minimum order size; check min-order-amt via htx-cli spot-market symbolsorder-pricemin-error — price precision error; check price-precisioncurl -fsSL https://github.com/htx-exchange/htx-skills-hub/releases/latest/download/install.sh | bash -s -- spot-trading