← 返回 Skills 市场
erongcao

Crypto Analyst

作者 Yirong · GitHub ↗ · v1.1.1 · MIT-0
cross-platform ⚠ suspicious
133
总下载
0
收藏
0
当前安装
2
版本数
在 OpenClaw 中安装
/install crypto-analyst
功能描述
加密货币综合分析工具,整合OKX、Binance双交易所数据。提供行情查询、技术分析、交易信号、资金流向、仓位管理、DCA计划、风险计算。触发词:分析BTC、行情查询、交易信号、仓位计算、DCA计划、巨鲸追踪、风险评估。
使用说明 (SKILL.md)

Crypto Analyst v1.1

加密货币综合分析,统一调用 OKX、Binance、AKShare 三大数据源。

工作流

价格查询 → 技术分析 → 资金流向 → 策略建议 → 仓位管理

工具速查

需求 工具 数据源 备注
OKX技术分析/信号 okx_analyst.py OKX API 需要API Key
Binance实时行情 binance_market.py Binance公开API 自动降级至Binance US
Binance技术分析 technical_analysis.py Binance公开API 同上
双交易所价格对比 cross_exchange.py OKX + Binance US 发现套利机会
巨鲸追踪 whale_tracker.py Binance ≥$10,000才算巨鲸
DCA定投计划 dca_calculator.py OKX实时价格 自动获取BTC价格
仓位计算 position_sizer.py 本地计算
市场机会扫描 market_scanner.py Binance 过滤\x3C$1M日成交量
恐惧&贪婪 fear_greed.py alternative.me 每日约8:00更新
OKX余额查询 balance_check.py OKX API 需要Key+Secret+Passphrase

快速命令

日常行情分析

# OKX技术分析(完整报告)
python3 scripts/okx_analyst.py BTC-USDT

# OKX快速信号
python3 scripts/okx_analyst.py BTC-USDT --signal-only

# Binance实时价格+24h统计
python3 scripts/binance_market.py --symbol BTCUSDT --all

# Binance技术分析
python3 scripts/technical_analysis.py --symbol BTCUSDT --interval 1h

进阶分析

# 跨交易所价格对比(发现价差套利机会)
python3 scripts/cross_exchange.py BTC

# 巨鲸追踪(只统计≥$10,000的大单)
python3 scripts/whale_tracker.py --symbol BTCUSDT

# 市场机会扫描(过滤低流动性,日成交>$1M)
python3 scripts/market_scanner.py --gainers --limit 10

# 恐惧&贪婪指数
python3 scripts/fear_greed.py

策略工具

# DCA定投计划(自动获取当前BTC价格)
python3 scripts/dca_calculator.py --total 5000 --frequency weekly --duration 180

# DCA手动指定价格+情景分析
python3 scripts/dca_calculator.py --total 5000 --frequency weekly --duration 180 --current-price 70000 --scenarios

# 仓位计算(2%风控)
python3 scripts/position_sizer.py --balance 10000 --risk 2 --entry 70000 --stop-loss 67000

标准分析流程

当用户说"分析BTC"或"帮我看看行情"时:

Step 1 - 价格 & 趋势

# OKX 4H周期完整分析
python3 scripts/okx_analyst.py BTC-USDT --timeframe 4H

# Binance 1H作为辅助确认
python3 scripts/binance_market.py --symbol BTCUSDT --klines 1h --limit 50

Step 2 - 资金面

# 巨鲸动向(自动过滤\x3C$10,000小额噪声)
python3 scripts/whale_tracker.py --symbol BTCUSDT

# 交易所资金费率(判断多空情绪)
python3 scripts/binance_market.py --symbol BTCUSDT --funding

Step 3 - 市场情绪

# 恐惧&贪婪(注意:每天约8:00 UTC更新一次)
python3 scripts/fear_greed.py

Step 4 - 策略输出 综合以上给出:

  1. 当前信号(看涨/看跌/中性)
  2. 关键支撑/阻力位
  3. 入场区间
  4. 止损/止盈建议
  5. 仓位大小(风控)
  6. 风险提示

信号强度说明

强度 信号 建议
+8以上 🟢 强烈看涨 积极做多
+5~+7 🟡 温和看涨 轻仓试多
+2~+4 🔵 轻微看涨 观望
-1~+1 ⚪ 中性 不操作
-2~-4 🟠 轻微看跌 轻仓试空
-5以下 🔴 强烈看跌 不做多

跨交易所对比

使用 cross_exchange.py 检测 OKX vs Binance 价差,超过0.1%提示套利机会。

风险控制规则

  1. 单笔交易风险 ≤ 账户2%
  2. 总持仓 ≤ 账户50%
  3. 永远带止损
  4. 恐惧&贪婪指数 ≥ 75(极度贪婪)时不做多
  5. 巨鲸净卖出 + RSI超买 → 谨慎
  6. 极度恐惧(≤25)时 ≠ 立即买入,等企稳

配置文件

复制 .env.example.env 后填入:

OKX_API_KEY=your-key
OKX_API_SECRET=your-secret
OKX_API_PASSPHRASE=your-passphrase

注意:balance_check.py 需要三个要素(Key + Secret + Passphrase),缺一不可。

依赖

pip install requests pandas numpy python-dotenv akshare
安全使用建议
What to check before installing or running: - Provenance: _meta.json (owner, slug, version) does not match the registry metadata shown — confirm the publisher/source before trusting code that handles API keys. - Secrets: The tools ask you to store OKX API_KEY/SECRET/PASSPHRASE in a .env file which the scripts will load. Only provide keys with the minimum permissions needed (read-only where possible) and avoid putting long-term trading keys into this directory unless you trust the source. - Missing files: SKILL.md suggests a .env.example but none is in the manifest; create .env carefully and verify names match the scripts (OKX_API_KEY, OKX_API_SECRET, OKX_API_PASSPHRASE). - External endpoints: The analyzer fetches news from a third-party NS3 endpoint (api.ns3.ai) and alternative.me for Fear & Greed; confirm you are comfortable with those telemetry/requests and that no other unknown remote endpoints exist in the omitted files. - Code review: A few scripts were truncated in the provided listing. If you will run these tools with real account credentials, review the remaining files (whale_tracker.py, technical_analysis.py or any omitted files) for any unexpected behavior (credential transmission to unknown servers, hidden POST/PUT calls, or file writes). If you lack the ability to audit, prefer using read-only API keys or running the scripts in an isolated environment. - Operational precaution: Run first with no credentials (or read-only keys) to verify behavior, and consider running inside a disposable container or VM. If you need higher assurance, ask the publisher for a signed release or review the full source history.
功能分析
Type: OpenClaw Skill Name: crypto-analyst Version: 1.1.1 The crypto-analyst skill bundle is a comprehensive suite of tools for cryptocurrency market analysis, technical indicators, and portfolio management using OKX and Binance APIs. The scripts (e.g., okx_analyst.py, binance_market.py, and whale_tracker.py) perform legitimate data retrieval and mathematical calculations consistent with the stated purpose. While balance_check.py handles sensitive API credentials, it does so using standard HMAC signing for the official OKX endpoint and shows no signs of exfiltration. The SKILL.md instructions provide a logical workflow for the AI agent without any evidence of prompt injection or malicious directives.
能力标签
cryptocan-make-purchases
能力评估
Purpose & Capability
Name/description promise: OKX+Binance analysis, signals, DCA, position sizing. The shipped scripts implement those features (okx_analyst.py, binance_market.py, dca_calculator.py, position_sizer.py, etc.). Requiring OKX API credentials for balance/OKX private endpoints aligns with the stated features. However, repository metadata in _meta.json (ownerId, slug, version) does not match the registry metadata provided, which is an inconsistency in packaging/source provenance that reduces trust.
Instruction Scope
SKILL.md instructs the agent to run contained Python scripts and to place OKX credentials in a .env. The scripts read .env (project root or script dir) and use network APIs (OKX, Binance, alternative.me, ns3.ai) consistent with the stated purpose. No instructions ask the agent to read unrelated system files. Minor issue: SKILL.md references copying .env.example to .env, but no .env.example is present in the file manifest—so the user must create the .env manually. Also several scripts were truncated in the provided listing; those omitted files should be reviewed before trusting the package.
Install Mechanism
No installation spec is provided (instruction-only install), and the SKILL.md lists reasonable Python dependencies (requests, pandas, numpy, python-dotenv, akshare). There are no remote downloads or archive extraction steps in the manifest, which lowers install-time risk.
Credentials
Only exchange credentials (OKX API key, secret, passphrase) are needed for the OKX-only features; no unrelated credentials are requested. The scripts load .env files into environment variables at runtime — this is expected for API keys but means plaintext secrets in a project .env file could be read by the scripts. The code accesses only those env vars declared in SKILL.md and the scripts; I did not find requests for unrelated secrets in the visible files.
Persistence & Privilege
Flags show always:false and normal autonomous invocation allowed. The package does not request persistent system-wide privileges or attempt to modify other skills; it is a normal, on-demand toolset.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install crypto-analyst
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /crypto-analyst 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.1.1
- Improved scripts for Binance market data, technical analysis, market scanning, and whale tracking. - Minor code adjustments across core analysis and tracking modules. - No changes to user-facing documentation or feature set.
v1.1.0
Crypto Analyst v1.1: 更强大的加密货币综合分析 - 新增AKShare数据源,分析数据覆盖OKX、Binance与AKShare。 - 优化工具结构,详细区分行情查询、技术分析、资金流向、套利、仓位和风控等功能脚本。 - 市场机会扫描、恐惧&贪婪指数、巨鲸追踪等新工具纳入标准工作流。 - 明确标准分析流程,从价格趋势到资金面、市场情绪和策略建议全流程覆盖。 - 完善仓位管理和风险控制规则,增强投资安全性。 - 丰富快速命令示例,便于直接调用各分析功能。
元数据
Slug crypto-analyst
版本 1.1.1
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 2
常见问题

Crypto Analyst 是什么?

加密货币综合分析工具,整合OKX、Binance双交易所数据。提供行情查询、技术分析、交易信号、资金流向、仓位管理、DCA计划、风险计算。触发词:分析BTC、行情查询、交易信号、仓位计算、DCA计划、巨鲸追踪、风险评估。 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 133 次。

如何安装 Crypto Analyst?

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

Crypto Analyst 是免费的吗?

是的,Crypto Analyst 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

Crypto Analyst 支持哪些平台?

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

谁开发了 Crypto Analyst?

由 Yirong(@erongcao)开发并维护,当前版本 v1.1.1。

💬 留言讨论