Fetches top-trader long/short ratios on HTX USDT-M perpetuals, both account-count and position-size. Useful for gauging smart money sentiment on BTC, ETH, SOL and other contracts.
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 elite (top-trader) long/short ratio on HTX USDT-M perpetuals. Distinguishes signals from sophisticated traders vs. retail crowd. Public — agent may call freely.
Load this skill when the user asks about:
For retail / market-wide ratio, HTX does not currently expose a non-elite long/short endpoint — that's a data gap. Document this in your reply if the user asks for it.
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_elite_account_ratio | htx-cli futures call GET /linear-swap-api/v1/swap_elite_account_ratio --query contract_code=<code>&period=<period> --json | Top-trader account-count long/short ratio (1 trader = 1 vote) |
| 2 | GET | /linear-swap-api/v1/swap_elite_position_ratio | htx-cli futures call GET /linear-swap-api/v1/swap_elite_position_ratio --query contract_code=<code>&period=<period> --json | Top-trader position-size long/short ratio (size-weighted) |
The two ratios answer different questions:
| Ratio | Question | Strength |
|---|---|---|
| Account ratio | How many top traders are net long vs short? | Reflects breadth of conviction |
| Position ratio | How much capital is net long vs short? | Reflects size-weighted exposure |
Divergence is informative: e.g. account ratio 1.2 (slight long majority) but position ratio 0.6 (heavy short capital) → a few top traders are very heavily short.
Both endpoints accept period:
5min, 15min, 30min, 60min, 4hour, 12hour, 1dayReturns a time series, typically last 48 data points.
USDT-M perpetual codes follow <BASE>-USDT (e.g. BTC-USDT).
| User question | CLI command |
|---|---|
| "BTC top-trader long/short by account" | htx-cli futures call GET /linear-swap-api/v1/swap_elite_account_ratio --query contract_code=BTC-USDT&period=1hour --json |
| "ETH top-trader L/S by position size" | htx-cli futures call GET /linear-swap-api/v1/swap_elite_position_ratio --query contract_code=ETH-USDT&period=4hour --json |
| "Is smart money crowded long on SOL?" | Both endpoints + interpret divergence |
Return both ratios when relevant. Compute and label:
| Ratio range | Label |
|---|---|
> 2.0 | Heavily long (extreme) |
1.3 – 2.0 | Long-leaning |
0.77 – 1.3 | Balanced |
0.5 – 0.77 | Short-leaning |
< 0.5 | Heavily short (extreme) |
(Ratios are symmetric on log scale — 2.0 and 0.5 are equally extreme.)
Always show:
https://github.com/htx-exchange/htx-skills-hub/funding-rate — combine with funding for crowdedness picturehttps://github.com/htx-exchange/htx-skills-hub/oi-tracker — combine with OI for new positioning vs. unwindinghttps://github.com/htx-exchange/htx-skills-hub/sentiment-analyst — (planned Layer 2) uses elite ratio as a sentiment inputWhat SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
htx, crypto-perpetuals, long-short-ratio, smart-money, elite-traders
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./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./htx-exchange-htx-skills-hub:htx-elite-positioningfrom 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