← 返回 Skills 市场
hmzo

Crypto Market Analyzer

作者 hmzo · GitHub ↗ · v1.0.0
cross-platform ✓ 安全检测通过
1417
总下载
2
收藏
3
当前安装
1
版本数
在 OpenClaw 中安装
/install crypto-market-analyzer
功能描述
Cryptocurrency market analysis for Bitcoin and Ethereum. Fetches 4h (24h) and 1d (30-day) data from Binance API, calculates technical indicators (RSI, SMAs, support/resistance), and provides bullish/bearish sentiment analysis with reasoning. Use when user asks for crypto market reports, BTC/ETH analysis, or daily market summaries.
使用说明 (SKILL.md)

Crypto Market Analyzer

This skill provides automated cryptocurrency market analysis for Bitcoin (BTC) and Ethereum (ETH).

What It Does

  • Fetches market data from Binance public API (no authentication required)
  • Analyzes 4-hour timeframe (last 24 hours)
  • Analyzes daily timeframe (last 30 days)
  • Calculates technical indicators:
    • RSI (Relative Strength Index, 14-period)
    • Simple Moving Averages (20-day and 50-day)
    • Support and resistance levels
    • Price change (24h and 7d)
  • Provides sentiment analysis (Bullish/Bearish/Neutral) with confidence level
  • Generates structured reports with reasoning

Usage

Generate Market Report

Run the analysis script:

python3 scripts/fetch_crypto_data.py

Output format (JSON):

{
  "BTCUSDT": {
    "indicators": {
      "current_price": 43250.50,
      "sma_20": 42800.00,
      "sma_50": 41500.00,
      "rsi": 58.3,
      "support": 42000.00,
      "resistance": 44000.00,
      "price_change_24h": 2.5,
      "price_change_7d": 5.8
    },
    "sentiment": {
      "sentiment": "Bullish (看涨)",
      "confidence": 0.75,
      "reasons": [
        "RSI (58.3) shows bullish momentum",
        "Price above both SMAs (20d and 50d) - bullish trend",
        "Strong 24h gain (2.50%) - bullish"
      ]
    },
    "timestamp": "2026-02-11T14:38:00"
  },
  "ETHUSDT": { ... }
}

Generate Human-Readable Report

To create a user-friendly report, use the JSON output and format it:

📊 加密货币市场分析报告
生成时间: 2026-02-11 14:38

## 比特币 (BTC)

💰 当前价格: $43,250.50
📈 24h涨跌: +2.5%
📊 7日涨跌: +5.8%

### 技术指标
- RSI (14): 58.3
- SMA 20: $42,800
- SMA 50: $41,500
- 支撑位: $42,000
- 阻力位: $44,000

### 市场判断
🎯 趋势: 看涨 (Bullish)
📊 置信度: 75%

📝 分析理由:
- RSI (58.3) 显示多头动能
- 价格位于20日和50日均线上方 - 上升趋势
- 24小时涨幅强劲 (2.50%) - 多头信号

## 以太坊 (ETH)
...

Scheduled Execution

This skill is designed for daily automated execution at 10:00 AM (UTC+8).

To schedule via OpenClaw cron:

# Create a cron job to run daily at 10:00 AM UTC+8
# This corresponds to 02:00 UTC

The cron job should:

  1. Execute the analysis script
  2. Parse the JSON output
  3. Format a human-readable report
  4. Send the report to the user via messaging channel

Technical Details

Data Source

  • API: Binance Public API
  • Endpoint: /api/v3/klines
  • Rate Limits: 1200 request weight per minute (well within limits)
  • No Authentication Required: Public market data

Timeframes

  • 4h: 6 candles (24 hours of data)
  • 1d: 30 candles (30 days of data)

Indicators Explained

  • RSI: Momentum oscillator (0-100). \x3C30 = oversold, >70 = overbought
  • SMA 20/50: Trend indicators. Price > both SMAs = bullish
  • Support/Resistance: Recent low/high averages
  • Price Change: Percentage change over specified period

Sentiment Logic

Sentiment is determined by combining multiple signals:

  1. RSI position (oversold/overbought/momentum)
  2. Price vs moving averages (trend direction)
  3. Recent price changes (momentum strength)

Each signal contributes to a bullish/bearish score, which determines:

  • Overall sentiment (Bullish/Bearish/Neutral)
  • Confidence level (0.3 to 0.9)
  • Detailed reasoning

Extending the Skill

To add more cryptocurrencies:

Edit scripts/fetch_crypto_data.py and modify the symbols list:

symbols = ["BTCUSDT", "ETHUSDT", "SOLUSDT", "ADAUSDT"]

To add more indicators:

Extend the calculate_technical_indicators() function with additional calculations (MACD, Bollinger Bands, etc.).

To customize sentiment logic:

Modify the analyze_sentiment() function to adjust weighting and thresholds.

安全使用建议
This skill appears to do what it claims: query Binance public market data and compute technical indicators locally without needing credentials. Before installing or scheduling it: (1) review the full script yourself (or run it in a sandbox) to confirm there are no hidden network endpoints or logging of data you don't expect; (2) be cautious about enabling automated cron jobs — only schedule it if you want regular reports; (3) consider how reports will be delivered (the SKILL.md is vague about messaging channels), and avoid providing credentials to unknown channels; and (4) remember analysis is informational, not financial advice.
功能分析
Type: OpenClaw Skill Name: crypto-market-analyzer Version: 1.0.0 The OpenClaw skill 'crypto-market-analyzer' is benign. The `SKILL.md` clearly defines the skill's purpose to fetch and analyze public cryptocurrency data from the Binance API. The `scripts/fetch_crypto_data.py` script exclusively uses the `requests` library to interact with the public `https://api.binance.com/api/v3/klines` endpoint, which requires no authentication. The script performs local data processing and prints the results to standard output. There is no evidence of data exfiltration, malicious execution, persistence mechanisms, obfuscation, or prompt injection attempts against the agent. All actions are aligned with the stated purpose.
能力评估
Purpose & Capability
Name/description match the included code and SKILL.md. The Python script fetches public Binance klines and computes RSI, SMAs, EMA/MACD, Bollinger Bands, support/resistance and volume metrics — all expected for a crypto market analyzer.
Instruction Scope
Runtime instructions are limited to running the included script, parsing the JSON, formatting a report, and scheduling daily execution. The SKILL.md's instruction to "send the report to the user via messaging channel" is vague about which channel/mechanism or credentials to use; scheduling instructions assume the ability to create cron jobs (platform-specific) but do not instruct reading unrelated files or secrets.
Install Mechanism
No install spec is provided (instruction-only + included script). No downloads or external install steps — lowest-risk install model.
Credentials
The skill declares no required environment variables, no credentials, and the code only uses public Binance endpoints. No secret or unrelated credential access is requested.
Persistence & Privilege
always:false (normal). SKILL.md suggests creating a daily cron job which would give persistent scheduled runs if the operator configures it; this is a benign capability but requires user action/consent — the skill does not request platform-level always-on privileges.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install crypto-market-analyzer
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /crypto-market-analyzer 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Initial release: Daily cryptocurrency market analysis for Bitcoin and Ethereum with technical indicators (RSI, SMA, EMA, MACD, Bollinger Bands, volume) and beginner-friendly Chinese reports. Automated daily execution at 10:00 AM UTC+8.
元数据
Slug crypto-market-analyzer
版本 1.0.0
许可证
累计安装 5
当前安装数 3
历史版本数 1
常见问题

Crypto Market Analyzer 是什么?

Cryptocurrency market analysis for Bitcoin and Ethereum. Fetches 4h (24h) and 1d (30-day) data from Binance API, calculates technical indicators (RSI, SMAs, support/resistance), and provides bullish/bearish sentiment analysis with reasoning. Use when user asks for crypto market reports, BTC/ETH analysis, or daily market summaries. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 1417 次。

如何安装 Crypto Market Analyzer?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install crypto-market-analyzer」即可一键安装,无需额外配置。

Crypto Market Analyzer 是免费的吗?

是的,Crypto Market Analyzer 完全免费(开源免费),可自由下载、安装和使用。

Crypto Market Analyzer 支持哪些平台?

Crypto Market Analyzer 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Crypto Market Analyzer?

由 hmzo(@hmzo)开发并维护,当前版本 v1.0.0。

💬 留言讨论