Xspoonai official market sentiment monitor

From jiayaoqijia/cryptoskill · View interactive version

Xspoonai official market sentiment monitor is an AI agent skill from the GitHub repository jiayaoqijia/cryptoskill. Real-time on-chain market sentiment analysis aggregating blockchain metrics, social sentiment, technical trends, and anomaly detection into unified trading signals with 88% confidence

How to use this skill

Skill file

-----|------|-------------|-----------------|

| Etherscan API | Blockchain | 99.9% | Real-time |

| CoinGecko API | Market Data | 99.8% | Real-time |

| News APIs | News Feeds | 98% | Real-time |

| Reddit/Twitter | Social | 95% | Real-time |

| Community Data | Engagement | 90% | Hourly |

Module Details

Module 1: Sentiment Analyzer (92% Confidence)

Analyzes real-time on-chain network metrics and market microstructure:

Output includes gas pressure (0-100), whale sentiment (accumulating/neutral/distributing), network status, and composite on-chain score.

Module 2: Social Sentiment Tracker (88% Confidence)

Aggregates human sentiment from multiple sources:

Output includes article counts, community metrics, influencer alignment, and composite social score.

Module 3: Market Trend Detector (85% Confidence)

Technical analysis with 30-day price history:

Output includes trend direction, support/resistance levels, volume analysis, and composite trend score.

Module 4: Anomaly Detector (87% Confidence)

Real-time risk detection for unusual market patterns:

Output includes risk score (0-100), anomaly types detected, whale sentiment, and risk level classification (LOW/MEDIUM/HIGH/CRITICAL).

Module 5: Sentiment Aggregator (88% Confidence)

Master module combining all sources into unified signals:

Output includes composite sentiment score, trading signal, confidence level, position recommendations (size, entry, target, stop loss), and actionable alerts.

Output Specification

All modules return JSON with this standard structure:

{
  "analysis_type": "string",
  "overall_sentiment_score": 0-100,
  "sentiment_level": "string",
  "confidence": 0-100,
  "risk_score": 0-100,
  "risk_level": "LOW|MEDIUM|HIGH|CRITICAL",
  "trading_signal": "STRONG_BUY|BUY|HOLD|SELL|STRONG_SELL",
  "recommendations": ["array of strings"],
  "alerts": ["array of strings"],
  "component_scores": { "nested metrics" },
  "timestamp": "ISO 8601 UTC"
}

Sentiment Score Ranges

| Score Range | Classification | Interpretation | Recommended Action |

|-------------|-----------------|-----------------|-------------------|

| 75-100 | EXTREMELY BULLISH | Strong buy across components | Large accumulation |

| 60-75 | VERY BULLISH | Majority bullish signals | Medium DCA strategy |

| 50-60 | BULLISH | Mixed signals with upside | Small position |

| 40-50 | NEUTRAL | Conflicting indicators | Wait for confirmation |

| 30-40 | BEARISH | Majority bearish | Reduce exposure |

| <30 | VERY BEARISH | Strong sell signals | Exit positions |

Risk Level Classification

| Risk Level | Score | Market Conditions | Recommended Position Adjustment |

|------------|-------|-------------------|--------------------------------|

| LOW | 0-25 | Safe, stable conditions | Normal trading rules |

| MEDIUM | 25-50 | Elevated caution needed | Wider stop losses |

| HIGH | 50-75 | Significant risks present | Tight stop losses, reduced size |

| CRITICAL | 75-100 | Extreme danger | Exit all positions immediately |

Integration Examples

Query Single Module

from scripts.sentiment_analyzer import SentimentAnalyzer

analyzer = SentimentAnalyzer()
result = analyzer.analyze_sentiment_on_chain()
print(f"Score: {result['overall_sentiment_score']}, Risk: {result['risk_level']}")

Get Unified Signal

from scripts.sentiment_aggregator import SentimentAggregator

aggregator = SentimentAggregator()
signal = aggregator.aggregate_all_sentiments()
print(f"Signal: {signal['trading_signal']}, Confidence: {signal['confidence']}%")
if signal['alerts']:
    for alert in signal['alerts']:
        print(f"⚠️ {alert}")

Real-Time Monitoring Loop

import time
from scripts.sentiment_aggregator import SentimentAggregator

aggregator = SentimentAggregator()
while True:
    signal = aggregator.aggregate_all_sentiments()
    if signal['risk_level'] in ['HIGH', 'CRITICAL']:
        # Trigger alerts
        print(f"ALERT: Risk {signal['risk_level']} detected!")
    time.sleep(300)  # Check every 5 minutes

Performance Characteristics

Execution Times:

Accuracy:

Scalability:

Deployment & Configuration

Quick Start

# Install dependencies
pip install -r requirements.txt

# (Optional) Set API keys
export ETHERSCAN_API_KEY=your_key
export NEWS_API_KEY=your_key

# Run unified analysis
python scripts/sentiment_aggregator.py

API Configuration

Free-tier APIs are sufficient for production use:

Environment Variables

# Optional - for enhanced functionality
ETHERSCAN_API_KEY=...      # Whale tracking enhancement
NEWS_API_KEY=...           # News sentiment analysis
LOG_LEVEL=INFO             # Logging configuration
CACHE_ENABLED=true         # Data caching (1 hour default)

Version & Support

Future Enhancements (v1.1.0)

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.