mcpField
A
analyzing-market-sentiment

analyzing-market-sentiment

github.com/jeremylongshoreデータ・データベース2.9k86 回インストール2 日前に更新
リポジトリ

analyzing-market-sentiment について

Fear & Greed Index、ニュースのキーワード、価格と出来高のモメンタムを統合して暗号資産市場のセンチメントを分析するスキルです。市場全体または個別コインを対象に、構成要素の詳細も確認できます。

主な機能

  1. 013種類のセンチメント指標を統合
  2. 02加重方式で 0~100 点を算出
  3. 03市場全体または個別コインを分析
  4. 04指標ごとの内訳を表示
  5. 05結果を JSON で出力

活用シーン

  1. 01暗号資産市場全体のセンチメント確認
  2. 02BTC など個別コインの分析
  3. 03各指標の寄与を詳細に確認
  4. 04取引モデル向けにスコアを出力

インストール

コマンドをコピーしてターミナルで実行します。

$npx skills add https://github.com/jeremylongshore/tons-of-skills-marketplace --skill analyzing-market-sentiment

インストール後、Claude Code で/analyzing-market-sentimentを入力して読み込まれたか確認します。

同梱ファイル

SKILL.md と一緒にインストールされる参考資料やスクリプト。

ARD.md
PRD.md
config/
settings.yaml
references/
errors.md
examples.md
implementation.md
scripts/
fear_greed.py
formatters.py
market_momentum.py
news_sentiment.py
sentiment_analyzer.py

詳細

市場センチメントの分析

概要

Fear & Greed Index、ニュースキーワード分析、価格・出来高のモメンタムを組み合わせた、暗号資産市場のセンチメント分析です。複合スコアは0~100です。

前提条件

  1. Python 3.8+ がインストールされていること
  2. 依存関係:pip install requests
  3. API アクセスのためのインターネット接続(Alternative.me、CoinGecko)
  4. 任意:ニュース分析を強化する crypto-news-aggregator スキル

手順

  1. ユーザーの意図を確認する - 必要な分析を判断します:

    • 市場全体:特定のコインを指定せず、市場全般のセンチメントを分析
    • コイン別:シンボル(BTC、ETH など)を抽出
    • 簡易版と詳細版:簡易スコアか、全コンポーネントの内訳かを選択
  2. 適切なオプションでセンチメント分析を実行する:

    # Quick market sentiment check
    python ${CLAUDE_SKILL_DIR}/scripts/sentiment_analyzer.py
    
    # Coin-specific sentiment
    python ${CLAUDE_SKILL_DIR}/scripts/sentiment_analyzer.py --coin BTC
    
    # Detailed breakdown with all components
    python ${CLAUDE_SKILL_DIR}/scripts/sentiment_analyzer.py --detailed
    
    # Custom time period
    python ${CLAUDE_SKILL_DIR}/scripts/sentiment_analyzer.py --period 7d --detailed
    
  3. 取引モデルや分析用に結果をエクスポートする:

    python ${CLAUDE_SKILL_DIR}/scripts/sentiment_analyzer.py --format json --output sentiment.json
    
  4. ユーザーに結果を提示する:

    • 複合スコアと分類を目立つように表示
    • センチメントの数値が何を意味するか説明
    • 極端な数値(逆張りシグナルの可能性)を強調
    • 詳細モードでは、重み付けを含むコンポーネントの内訳を表示

出力

分類と重み付けされたコンポーネントの内訳を含む、複合センチメントスコア(0~100)。極端な数値は逆張り指標として機能します:

==============================================================================
  MARKET SENTIMENT ANALYZER                         Updated: 2026-01-14 15:30  # 2026 - current year timestamp
==============================================================================

  COMPOSITE SENTIMENT
------------------------------------------------------------------------------
  Score: 65.5 / 100                         Classification: GREED

  Component Breakdown:
  - Fear & Greed Index:  72.0  (weight: 40%)  -> 28.8 pts
  - News Sentiment:      58.5  (weight: 40%)  -> 23.4 pts
  - Market Momentum:     66.5  (weight: 20%)  -> 13.3 pts

  Interpretation: Market is moderately greedy. Consider taking profits or
  reducing position sizes. Watch for reversal signals.

==============================================================================

エラー処理

エラー原因解決策
Fear & Greed を取得できないAPI が停止している警告を表示し、キャッシュされた値を使用します
ニュースの取得に失敗ネットワークの問題ニュースコンポーネントの重みを下げます
無効なコイン不明なシンボル市場全体の分析を続行します

包括的なエラー処理については、${CLAUDE_SKILL_DIR}/references/errors.md を参照してください。

例

簡易チェックから重みをカスタマイズした詳細分析まで、センチメント分析のパターンを紹介します:

# Quick market sentiment
python ${CLAUDE_SKILL_DIR}/scripts/sentiment_analyzer.py

# Bitcoin-specific sentiment
python ${CLAUDE_SKILL_DIR}/scripts/sentiment_analyzer.py --coin BTC

# Detailed analysis with component breakdown
python ${CLAUDE_SKILL_DIR}/scripts/sentiment_analyzer.py --detailed

# Custom weights emphasizing news
python ${CLAUDE_SKILL_DIR}/scripts/sentiment_analyzer.py --weights "news:0.5,fng:0.3,momentum:0.2"

# Weekly sentiment trend
python ${CLAUDE_SKILL_DIR}/scripts/sentiment_analyzer.py --period 7d --detailed

リソース

  • ${CLAUDE_SKILL_DIR}/references/implementation.md - CLI オプション、分類、JSON 形式、逆張り理論
  • ${CLAUDE_SKILL_DIR}/references/errors.md - 包括的なエラー処理
  • ${CLAUDE_SKILL_DIR}/references/examples.md - 詳細な使用例
  • Alternative.me Fear & Greed:https://alternative.me/crypto/fear-and-greed-index/
  • CoinGecko API:https://www.coingecko.com/en/api
  • ${CLAUDE_SKILL_DIR}/config/settings.yaml - 設定オプション

コメント