一键导入
htx-spot-account
HTX spot account — balance / holdings / asset valuation / spot ↔ futures transfers.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
HTX spot account — balance / holdings / asset valuation / spot ↔ futures transfers.
用 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-account |
| version | 2.0.0 |
| description | HTX spot account — balance / holdings / asset valuation / spot ↔ futures transfers. |
| auth | true |
| risk | medium |
Query spot account and sub-account balance, valuation, transaction history, and inter-account transfers.
Authentication: all endpoints require an API key (read permission is enough; transfers need trade permission) Risk: read endpoints have no side effects; transfer endpoints require manual confirmation
# List all accounts
htx-cli spot account list
# Query a specific account balance (account-id required)
htx-cli spot account balance <account-id>
# Total asset USD valuation
htx-cli spot account valuation
| # | Method | Endpoint | CLI | Description |
|---|---|---|---|---|
| 1 | GET | /v1/account/accounts | htx-cli spot account list | List all accounts (spot / margin / otc / point) |
| 2 | GET | /v1/account/accounts/{id}/balance | htx-cli spot account balance <id> | Per-currency balance of a single account |
| 3 | GET | /v2/account/asset-valuation | htx-cli spot account valuation | Total asset valuation (USD / BTC) |
| 4 | GET | /v1/account/history | htx-cli spot account history | Account history (last 7 days) |
| 5 | GET | /v1/query/deposit-withdraw | htx-cli spot account deposit-withdraw | Deposit/withdraw records |
| # | Method | Endpoint | CLI invocation | Description |
|---|---|---|---|---|
| 6 | POST | /v1/account/transfer | htx-cli spot call /v1/account/transfer --method POST --auth --body '{"from-account-id":...,"to-account-id":...,"currency":"usdt","amount":"..."}' --json | Transfer between user's own spot/margin/otc accounts |
| 7 | POST | /v1/futures/transfer | htx-cli spot call /v1/futures/transfer --method POST --auth --body '{"currency":"btc","amount":"...","type":"pro-to-futures"}' --json | Spot ↔ COIN-M (coin-margined delivery) futures transfer ONLY. Does NOT work for USDT-M. |
| 8 | POST | /v2/account/transfer | htx-cli spot call /v2/account/transfer --method POST --auth --body '{"from":"spot","to":"linear-swap","currency":"usdt","amount":"5","margin-account":"USDT"}' --json | Spot ↔ USDT-M linear perpetual / cross-margin / super-margin, etc. Use for any USDT-M futures transfer. |
| 9 | GET | /v1/point/account | htx-cli spot call /v1/point/account --auth --json | HTX points balance |
| 10 | POST | /v1/point/transfer | htx-cli spot call /v1/point/transfer --method POST --auth --body '{"fromUid":"...","toUid":"...","amount":"..."}' --json | Transfer points |
Important: For USDT-M perpetual swap (linear perpetual), you MUST use
/v2/account/transferwithfrom/to=spot↔linear-swapandmargin-account=USDT(cross) orUSDT-<symbol>(isolated, e.g.USDT-BTC). The/v1/futures/transferendpoint is reserved for COIN-M delivery contracts and will returnTransfer service is temporarily suspended for USDT accountif misused.
htx-cli spot account list --json # find account id with type=spot
htx-cli spot account balance <id> --json # detailed per-currency balance
htx-cli spot account valuation --json # single USD total
Use /v2/account/transfer:
htx-cli spot call /v2/account/transfer --method POST --auth \
--body '{"from":"spot","to":"linear-swap","currency":"usdt","amount":"5","margin-account":"USDT"}' --json
from / to: spot, linear-swap, margin, super-margin, etc. Reverse them to transfer back.margin-account: USDT for cross-margin, USDT-BTC (etc.) for isolated margin.Use /v1/futures/transfer with type = pro-to-futures or futures-to-pro (currency is the coin symbol, e.g. btc, eth).
Before calling any transfer endpoint, display to the user source, destination, currency, amount, direction. Only proceed after explicit user confirmation.
curl -fsSL https://github.com/htx-exchange/htx-skills-hub/releases/latest/download/install.sh | bash -s -- spot-account