Tracks HTX USDT-M perpetual open interest via public endpoints — current OI snapshots per contract plus historical OI time series for trend and surge detection. Useful for OI vs price divergence analysis and 24h change computation.
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.
Read when SKILL.md points to them.
Focused skill for open interest (OI) on HTX USDT-M perpetuals. Public endpoints — agent may call them freely.
Load this skill when the user asks about:
For combined OI + funding + multi-signal scoring, prefer htx-derivatives-analyst (planned Layer 2).
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_open_interest | htx-cli futures call GET /linear-swap-api/v1/swap_open_interest [--query contract_code=<code>] --json | Current OI snapshot. Without contract_code, returns all contracts. |
| 2 | GET | /linear-swap-ex/market/his_open_interest | htx-cli futures call GET /linear-swap-ex/market/his_open_interest --query contract_code=<code>&period=<period>&size=<N> --json | Historical OI time series for trend / surge analysis. |
USDT-M perpetual codes follow <BASE>-USDT (e.g. BTC-USDT).
his_open_interest accepts:
period: 60min, 4hour, 12hour, 1daysize: 1 to 200| User question | CLI command |
|---|---|
| "BTC current OI" | htx-cli futures call GET /linear-swap-api/v1/swap_open_interest --query contract_code=BTC-USDT --json |
| "All-contract OI snapshot" | htx-cli futures call GET /linear-swap-api/v1/swap_open_interest --json |
| "ETH OI 4h trend last 200 bars" | htx-cli futures call GET /linear-swap-ex/market/his_open_interest --query contract_code=ETH-USDT&period=4hour&size=200 --json |
| "BTC OI 24h change %" | Pull 1d period size=2, compute (latest - previous) / previous * 100 client-side |
Return:
amount) and base currency (volume × multiplier)his_open_interest series)| Pattern | Signal |
|---|---|
| OI ↑ + price ↑ | New longs entering — bullish continuation |
| OI ↑ + price ↓ | New shorts entering — bearish continuation |
| OI ↓ + price ↑ | Shorts covering — squeeze risk |
| OI ↓ + price ↓ | Longs unwinding — capitulation |
https://github.com/htx-exchange/htx-skills-hub/funding-rate — funding rate context for crowdednesshttps://github.com/htx-exchange/htx-skills-hub/elite-positioning — top-trader long/short ratiohttps://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
Three short reads, in order
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./futures-accounthtx/futures-accountHTX USDT-M perpetual futures account — balance / positions / leverage tiers / adjustment factors / unified account type switching./futures-markethtx/futures-marketHTX USDT-M perpetual futures core market data — contract info / klines / ticker / order book / index price / system status./futures-tradinghtx/futures-tradingHTX USDT-M perpetual futures order management — open / close / TP/SL / trigger orders / modify / cancel./htx-exchange-htx-skills-hub:htx-oi-trackerfrom 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