Combines Fear & Greed Index, HTX elite long/short ratio, and 24h gainers/losers into a unified market sentiment score. Useful for gauging crowd mood and spotting contrarian opportunities.
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.
Layer 2 analytical skill that reads market mood from 3 dimensions: market-wide fear/greed, smart-money positioning, and breadth (gainers vs losers). Calls one free external API (alternative.me) and composes 2 HTX Layer 1 skills.
For pure derivatives crowdedness on a specific contract, prefer htx-derivatives-analyst. For pure technicals, prefer htx-technical-analysis.
| Source | What it provides | Cost |
|---|---|---|
https://api.alternative.me/fng/ (external) | Crypto Fear & Greed Index (0-100) — daily, free, no key | free |
https://github.com/htx-exchange/htx-skills-hub/elite-positioning | top-trader account + position L/S ratio | free |
https://github.com/htx-exchange/htx-skills-hub/spot-market | 24h gainers/losers via tickers endpoint | free |
If those Layer 1 skills aren't installed:
htx-cli skill install elite-positioning
htx-cli skill install spot-market
curl -s 'https://api.alternative.me/fng/?limit=30' | jq .
Returns a 30-day history of values 0–100 with labels:
| Range | Label |
|---|---|
| 0-24 | Extreme Fear |
| 25-44 | Fear |
| 45-55 | Neutral |
| 56-74 | Greed |
| 75-100 | Extreme Greed |
htx-cli futures call GET /linear-swap-api/v1/swap_elite_account_ratio \
-p contract_code=BTC-USDT -p period=4hour --json
htx-cli futures call GET /linear-swap-api/v1/swap_elite_position_ratio \
-p contract_code=BTC-USDT -p period=4hour --json
htx-cli spot market tickers --json
Compute client-side:
change > +5% (strong gainers)change < -5% (strong losers)Blend three dimensions to a 0-100 score (higher = greedier / more bullish crowd):
| Dimension | Weight | Source |
|---|---|---|
| Fear & Greed Index | 50% | external API (use it directly, 0-100 already) |
| Elite positioning | 30% | account ratio: 1.0 → 50; 1.5 → 70; 2.0 → 85; <1.0 inverted |
| Breadth | 20% | gainer_to_loser_ratio: 1.0 → 50; 2.0 → 70; 0.5 → 30 |
Weighted average → label using same Fear/Greed buckets.
Cross-reference sentiment with price for divergence signals:
| Sentiment | Price (7d) | Read |
|---|---|---|
| Extreme Greed | flat / declining | Distribution — crowd long but price not following → reversal risk |
| Extreme Fear | flat / rising | Accumulation — price holding despite fear → bottom signal |
| Greed | rising | Trend continuation — bullish, but watch for exhaustion above 80 |
| Fear | falling | Capitulation — bearish but watch for shakeout below 20 |
{
"skill": "sentiment-analyst",
"timestamp": "2026-...",
"summary": {
"sentiment_score": 0-100,
"sentiment_label": "Extreme Fear | Fear | Neutral | Greed | Extreme Greed",
"crowd_direction": "long-leaning | balanced | short-leaning",
"divergence": "sentiment-price diverging | aligned | none observed",
"one_liner": "Greed (74), elite account ratio 1.6 long-leaning, 7d gainer/loser 1.8, but BTC price flat — distribution risk"
},
"fear_greed": {"value": 74, "label": "Greed", "change_24h": 5, "change_7d": -3},
"elite_position": {
"btc_account_ratio": 1.6,
"btc_position_ratio": 1.4,
"label": "moderately long-leaning"
},
"breadth": {
"strong_gainers": 35,
"strong_losers": 19,
"gainer_loser_ratio": 1.84,
"top_gainers": ["XYZ +12%", "..."],
"top_losers": ["...", "..."]
},
"risk_warning": "Sentiment > 70 historically precedes 5%+ corrections within 7 days ~40% of the time."
}
These gaps are flagged in the output risk_warning so users know what's not modeled.
https://github.com/htx-exchange/htx-skills-hub/elite-positioning, https://github.com/htx-exchange/htx-skills-hub/spot-market — data sourceshttps://github.com/htx-exchange/htx-skills-hub/derivatives-analyst — combine with derivatives pressure for fuller picturehttps://github.com/htx-exchange/htx-skills-hub/market-overview — uses the same breadth computation in a different framingWhat 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./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-sentiment-analystfrom 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