Retrieves HTX USDT-M perpetual settlement data (estimated settlement prices, historical records) and insurance fund balance/history. Useful for crypto derivatives risk monitoring.
Ships in htx-skills-hub. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Reference data for HTX USDT-M perpetual settlements (the periodic mark-to-market events that net unrealized PnL into wallets) and the insurance fund (the contract platform's reserve for socialized loss prevention).
Load this skill when the user asks about:
Drives htx-cli. Binary on $PATH or $HTX_CLI_BIN. Always pass --json.
| # | Method | Endpoint | CLI invocation | Description |
|---|---|---|---|---|
| 1 | GET | /linear-swap-api/v1/swap_estimated_settlement_price | htx-cli futures call GET /linear-swap-api/v1/swap_estimated_settlement_price [--query contract_code=<code>] --json | Estimated price for the next settlement |
| 2 | GET | /linear-swap-api/v1/swap_settlement_records | htx-cli futures call GET /linear-swap-api/v1/swap_settlement_records --query contract_code=<code>&start_time=<ms>&end_time=<ms> --json | Historical settlement records (per-contract) |
| 3 | GET | /v1/insurance_fund_info | htx-cli futures call GET /v1/insurance_fund_info --json | Current insurance fund balance per asset |
| 4 | GET | /v1/insurance_fund_history | htx-cli futures call GET /v1/insurance_fund_history --json | Historical insurance fund balance time series |
| Term | Meaning |
|---|---|
| Settlement | Periodic netting event where unrealized PnL becomes realized. HTX USDT-M settles continuously via mark price PnL — the "settlement records" endpoint refers to delivery-style settlements for any quarterly contracts. |
| Estimated settlement price | Forward-looking price that would clear positions if settlement happened now. Useful for risk monitoring of margin levels. |
| Insurance fund | Reserve pool funded by liquidation surplus. When a liquidated position can't be auctioned at the bankruptcy price, the fund covers the gap. Drawdowns indicate platform stress. |
USDT-M perpetual codes follow <BASE>-USDT (e.g. BTC-USDT).
| User question | CLI command |
|---|---|
| "BTC estimated settlement price" | htx-cli futures call GET /linear-swap-api/v1/swap_estimated_settlement_price --query contract_code=BTC-USDT --json |
| "ETH settlement records last 30d" | htx-cli futures call GET /linear-swap-api/v1/swap_settlement_records --query contract_code=ETH-USDT --json |
| "HTX insurance fund right now" | htx-cli futures call GET /v1/insurance_fund_info --json |
| "Insurance fund last 90 days" | htx-cli futures call GET /v1/insurance_fund_history --json |
For insurance fund queries:
For settlement queries:
https://github.com/htx-exchange/htx-skills-hub/funding-rate — settlements happen alongside funding eventshttps://github.com/htx-exchange/htx-skills-hub/liquidation-stream — liquidations feed the insurance fundhttps://github.com/htx-exchange/htx-skills-hub/derivatives-analyst — (planned Layer 2) multi-signal pressure scoringWhat SKILL.md sets; muted values are Claude Code's defaults
17 skills in this plugin
/htx-derivatives-analystMulti-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./htx-elite-positioningTop-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./funding-ratehtx/funding-rateHTX USDT-M perpetual funding rate — current / market-wide batch / history / estimated next-period klines./htx-exchange-htx-skills-hub:htx-settlementfrom htx-skills-hub
Generated from the plugin's indexed repository (htx-exchange/htx-skills-hub) — no native marketplace selected
npx claudepluginhub p/htx-exchange-htx-skills-hubOther plugins' skills for the same job