htx-sentiment-analyst
Market sentiment & crowdedness analysis — combines free Fear & Greed Index, HTX elite long/short ratio, and 24h gainers/losers distribution into a unified mood read. No HTX API key, one free external dependency.
What this skill does
# HTX Sentiment Analyst
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.
## When to use this skill
- "What's the market sentiment right now?"
- "Are we in greed territory?"
- "Is BTC positioning crowded?"
- "Is the crowd net long or net short?"
- "Should I be contrarian here?"
- "Sentiment vs price divergence?"
For pure derivatives crowdedness on a specific contract, prefer `htx-derivatives-analyst`. For pure technicals, prefer `htx-technical-analysis`.
## Underlying tools
| 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:
```bash
htx-cli skill install elite-positioning
htx-cli skill install spot-market
```
## Standard workflow
### Step 1 — Fetch Fear & Greed (external)
```bash
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 |
### Step 2 — Pull HTX elite positioning (BTC as proxy for the major-coin crowd, plus user-specified symbol)
```bash
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
```
### Step 3 — Pull breadth from spot tickers
```bash
htx-cli spot market tickers --json
```
Compute client-side:
- count of pairs with `change > +5%` (strong gainers)
- count with `change < -5%` (strong losers)
- gainer_to_loser_ratio
- top 5 gainers, top 5 losers
## Composite sentiment score
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.
## Crowdedness interpretation
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 |
## Output structure
```json
{
"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."
}
```
## What this skill explicitly does NOT do
- ⚠️ **No social media sentiment** (Twitter/X, Reddit, Weibo, Douyin) — HTX has no native endpoint and we're not paying for LunarCrush yet.
- ⚠️ **No KOL monitoring** — same reason.
- ⚠️ **No on-chain whale flow** — needs external paid source (Whale Alert / Nansen).
These gaps are flagged in the output `risk_warning` so users know what's not modeled.
## Related skills
- `https://github.com/htx-exchange/htx-skills-hub/elite-positioning`, `https://github.com/htx-exchange/htx-skills-hub/spot-market` — data sources
- `https://github.com/htx-exchange/htx-skills-hub/derivatives-analyst` — combine with derivatives pressure for fuller picture
- `https://github.com/htx-exchange/htx-skills-hub/market-overview` — uses the same breadth computation in a different framing
Related in Backend & APIs
jfrog
IncludedInteract with the JFrog Platform via the JFrog CLI and REST/GraphQL APIs. Use this skill when the user wants to manage Artifactory repositories, upload or download artifacts, manage builds, configure permissions, manage users and groups, work with access tokens, configure JFrog CLI servers, search artifacts, manage properties, set up replication, manage JFrog Projects, run security audits or scans, look up CVE details, query exposures scan results from JFrog Advanced Security, manage release bundles and lifecycle operations, aggregate or export platform data, or perform any JFrog Platform administration task. Also use when the user mentions jf, jfrog, artifactory, xray, distribution, evidence, apptrust, onemodel, graphql, workers, mission control, curation, advanced security, exposures, or any JFrog product name.
cupynumeric-migration-readiness
IncludedPre-migration readiness assessor for porting NumPy to cuPyNumeric. Use BEFORE substantial porting work begins when the user asks whether code will scale on GPU, whether they should migrate to cuPyNumeric, which NumPy patterns transfer cleanly, what must be refactored before porting, or mentions pre-port assessment, scaling analysis, or refactor planning. Inspect the user's source code, look up NumPy usage, cross-reference the cuPyNumeric API support manifest, and distinguish distributed-scaling-friendly patterns from blockers such as unsupported APIs, scalar synchronization, host round-trips, Python/object-heavy control flow, shape/data-dependent branching, and in-place mutation hazards. Produce a verdict of READY, LIGHT REFACTOR, SIGNIFICANT REFACTOR, or NOT RECOMMENDED, with concrete refactor pointers.
alibabacloud-data-agent-skill
IncludedInvoke Alibaba Cloud Apsara Data Agent for Analytics via CLI to perform natural language-driven data analysis on enterprise databases. Data Agent for Analytics is an intelligent data analysis agent developed by Alibaba Cloud Database team for enterprise users. It automatically completes requirement analysis, data understanding, analysis insights, and report generation based on natural language descriptions. This tool supports: discovering data resources (instances/databases/tables) managed in DMS, initiating query or deep analysis sessions, real-time progress tracking, and retrieving analysis conclusions and generated reports. Use this Skill when users need to query databases, analyze data trends, generate data reports, ask questions in natural language, or mention "Data Agent", "data analysis", "database query", "SQL analysis", "data insights".
token-optimizer
IncludedReduce OpenClaw token usage and API costs through smart model routing, heartbeat optimization, budget tracking, and native 2026.2.15 features (session pruning, bootstrap size limits, cache TTL alignment). Use when token costs are high, API rate limits are being hit, or hosting multiple agents at scale. The 4 executable scripts (context_optimizer, model_router, heartbeat_optimizer, token_tracker) are local-only — no network requests, no subprocess calls, no system modifications. Reference files (PROVIDERS.md, config-patches.json) document optional multi-provider strategies that require external API keys and network access if you choose to use them. See SECURITY.md for full breakdown.
resend-cli
IncludedUse this skill when the task is specifically about operating Resend from an AI agent, terminal session, or CI job via the official resend CLI: installing/authenticating the CLI, sending/listing/updating/cancelling emails, batch sends, domains and DNS, webhooks and local listeners, inbound receiving, contacts, topics, segments, broadcasts, templates, API keys, profiles, or debugging Resend CLI/API failures. Trigger on mentions of Resend CLI, `resend`, `resend doctor`, `resend emails send`, `resend domains`, `resend webhooks listen`, `resend emails receiving`, or agent-friendly terminal automation.
alibabacloud-odps-maxframe-coding
IncludedUse this skill for MaxFrame SDK development and documentation navigation on Alibaba Cloud MaxCompute (ODPS). Helps answer MaxFrame API, concept, official example, and supported pandas API questions; create data processing programs; read/write MaxCompute tables; debug jobs (remote or local); and build custom DPE runtime images. Trigger when users mention MaxFrame, MaxCompute with MaxFrame, ODPS table processing, DPE runtime, MaxFrame docs/examples, DataFrame/Tensor operations, or GPU runtime setup. Works for both English and Chinese queries about Alibaba Cloud data processing with MaxFrame.