Loading...
Loading...
Query HTX USDT-M perpetual futures market data — contract info, funding rates, OI, klines, depth, liquidations, sentiment. Mostly public; 6 endpoints require read-permission API key.
npx skill4agent add htx-exchange/htx-skills-hub htx-futures-markethtx-cli$PATH$HTX_CLI_BIN--jsonhtx-cli config set-key <AccessKeyId>
htx-cli config set-secret <SecretKey>| # | Method | Endpoint | CLI invocation | Description |
|---|---|---|---|---|
| 1 | GET | | | Contract metadata |
| 2 | GET | | | Index price |
| 3 | GET | | | Price limit (circuit) |
| 4 | GET | | | Open interest (OI) |
| 5 | GET | | | Contract elements |
| 6 | GET | | | Estimated settlement price |
| 7 | GET | | | System status (isolated) |
| 8 | GET | | | Insurance fund balance |
| 9 | GET | | | Insurance fund history |
| 10 | GET | | | Server timestamp |
| 11 | GET | | | Heartbeat |
| 12 | GET | | | Index constituents |
| 13 | GET | | | Liquidation orders |
| 14 | GET | | | Settlement history |
| # | Method | Endpoint | CLI invocation | Description |
|---|---|---|---|---|
| 1 | GET | | | Current funding rate |
| 2 | GET | | | Batch funding rates |
| 3 | GET | | | Historical funding rate |
| 4 | GET | | | Top-account long/short ratio |
| 5 | GET | | | Top-position long/short ratio |
| # | Method | Endpoint | CLI invocation | Description |
|---|---|---|---|---|
| 1 | GET | | | Order book depth |
| 2 | GET | | | Best bid / offer |
| 3 | GET | | | K-line |
| 4 | GET | | | Mark-price kline |
| 5 | GET | | | Single-contract overview |
| 6 | GET | | | All-contracts overview |
| 7 | GET | | | Latest trade |
| 8 | GET | | | Recent trades |
| 9 | GET | | | Historical OI |
| 10 | GET | | | Premium index kline |
| 11 | GET | | | Estimated funding rate kline |
| # | Method | Endpoint | CLI invocation | Description |
|---|---|---|---|---|
| 1 | GET | | | Unified account type |
| 2 | POST | | | Cross tier margin |
| 3 | POST | | | Isolated tier margin |
| 4 | POST | | | Isolated adjustment factor |
| 5 | POST | | | Cross adjustment factor |
| 6 | POST | | | Switch account type (write, keep in market skill per plan) |
<BASE>-USDTBTC-USDT, ETH-USDT, SOL-USDT, ...contract_codehtx-cli futures market funding-rate BTC-USDT --jsonhtx-cli futures call GET /linear-swap-ex/market/history/kline --query contract_code=ETH-USDT&period=60min&size=200 --jsonhtx-cli futures market liquidation-orders --contract-code BTC-USDT --jsonhtx-cli futures call GET /linear-swap-api/v1/swap_elite_position_ratio --query contract_code=BTC-USDT --jsonreferences/contract-info.mdreferences/funding-rate.md