Loading...
Loading...
Query HTX spot account balances, valuations, transaction history, and move funds between internal HTX accounts. Requires API key (read permission; transfers need write).
npx skill4agent add htx-exchange/htx-skills-hub htx-spot-accounthtx-cli$PATH$HTX_CLI_BIN--jsonhtx-cli config set-key <AccessKeyId>
htx-cli config set-secret <SecretKey>
htx-cli config showreferences/authentication.md| # | Method | Endpoint | CLI invocation | Description |
|---|---|---|---|---|
| 1 | GET | | | All accounts for the user |
| 2 | GET | | | Balance detail |
| 3 | GET | | | Total valuation of all accounts |
| 4 | GET | | | Per-account asset valuation |
| 5 | GET | | | Account flow / ledger |
| # | Method | Endpoint | CLI invocation | Description |
|---|---|---|---|---|
| 1 | POST | | | Transfer between user's own spot/margin/otc accounts |
| 2 | POST | | | Spot ↔ COIN-M (币本位交割) futures transfer ONLY. Does NOT work for USDT-M. |
| 3 | POST | | | Spot ↔ USDT-M linear swap / cross-margin / super-margin, etc. Use for any USDT-M futures transfer. |
| 4 | GET | | | HTX points balance |
| 5 | POST | | | Transfer points |
Important: For USDT-M perpetual swap (线性永续), you MUST usewith/v2/account/transfer/from=to↔spotandlinear-swap=margin-account(cross) orUSDT(isolated, e.g.USDT-<symbol>). TheUSDT-BTCendpoint is reserved for COIN-M delivery contracts and will return/v1/futures/transferif misused.Transfer service is temporarily suspended for USDT account
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/v2/account/transferhtx-cli spot call /v2/account/transfer --method POST --auth \
--body '{"from":"spot","to":"linear-swap","currency":"usdt","amount":"5","margin-account":"USDT"}' --jsonfromtospotlinear-swapmarginsuper-marginmargin-accountUSDTUSDT-BTC/v1/futures/transfertypepro-to-futuresfutures-to-probtcethhtx-cli config set-secretreferences/authentication.md