← 返回 Skills 市场
zitjubiz

etf-monitor

作者 zitjubiz · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ✓ 安全检测通过
282
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install etf-monitor
功能描述
ETF 波动监控 - 实时跟踪 ETF 涨跌幅,超过阈值自动告警
使用说明 (SKILL.md)

ETF 波动监控技能

实时监控 ETF 价格波动,超过设定阈值时自动告警。

功能特点

  • 📡 实时行情:使用腾讯财经 API,免费无需 Token
  • 🎯 多标的监控:支持同时监控多只 ETF
  • ⚠️ 智能告警:波动超过阈值自动通知
  • 🔇 静默模式:无告警时不打扰

快速使用

直接运行脚本

python3 /root/.openclaw/workspace/skills/etf-monitor.py

输出格式

无告警时:

{"alerts": []}

有告警时:

{
  "alerts": [
    {
      "code": "159985",
      "name": "豆粕 ETF",
      "current": 1.234,
      "percent": 1.5,
      "direction": "📈"
    }
  ]
}

配置说明

修改监控列表

编辑脚本中的 ETF_LIST

ETF_LIST = [
    ("sz159985", "159985", "豆粕 ETF"),
    ("sz159792", "159792", "港股通互联网 ETF"),
    ("sh515220", "515220", "煤炭 ETF"),
    # 添加更多 ETF...
]

调整波动阈值

THRESHOLD = 1.0  # 波动阈值 1%

定时任务示例

每 5 分钟检查一次:

*/5 * * * * python3 /root/.openclaw/workspace/skills/etf-monitor.py

支持的 ETF 代码格式

  • 深交所:sz + 6 位代码(如 sz159985
  • 上交所:sh + 6 位代码(如 sh515220

注意事项

  1. 需要网络连接访问腾讯财经 API
  2. 行情数据可能有 1-2 分钟延迟
  3. 建议阈值设置为 1%-3% 之间

版本: v5
最后更新: 2026-03-18

安全使用建议
This skill appears coherent and minimal, but consider these practical cautions before installing or running it: - Network and endpoint: the script queries qt.gtimg.cn over plain HTTP (not HTTPS). That means responses can be intercepted or tampered with on the network. If you run it on an untrusted network, consider using a secure network or an HTTPS proxy. - Rate limits and cron frequency: polling too frequently may hit rate limits or produce unnecessary traffic; follow the README recommendation (>=30s) and be conservative with cron scheduling (e.g., every 5 minutes). - Execution path and privileges: SKILL.md examples reference /root/.openclaw; you should run the script as an unprivileged user and store logs/output in a user-writable directory. Do not run as root unless you intend to and understand implications. - Dependencies: install the 'requests' package in the environment the script will run in (preferably a virtualenv) to avoid affecting system Python packages. - Notifications integration: the skill itself only prints JSON to stdout. If you integrate it with notification tools (QQ, email, webhook), those tools may require credentials — review them separately and ensure they are only granted to trusted integrations. - Code review and trust: the code is short and readable; if you have security concerns, inspect the script locally (it only calls requests.get and prints JSON). Verify the source (homepage points to a generic workspace) and prefer installing from repositories you trust. Overall: coherent and low-risk for typical use, with the main remaining concerns being unencrypted HTTP traffic and safe operational practices (non-root execution, appropriate polling cadence).
功能分析
Type: OpenClaw Skill Name: etf-monitor Version: 1.0.0 The etf-monitor skill is a legitimate tool for tracking ETF price fluctuations using the public Tencent Finance API (qt.gtimg.cn). The Python script (etf-monitor.py) and documentation (SKILL.md, README.md) contain no evidence of data exfiltration, malicious execution, or prompt injection, and the code logic strictly aligns with the stated purpose of monitoring financial data.
能力评估
Purpose & Capability
Name, description, SKILL.md and the included Python script all align: the script fetches ETF quotes from Tencent Finance (qt.gtimg.cn), computes percent change against last close, and emits alerts when threshold is exceeded. No unrelated binaries, credentials, or config paths are requested.
Instruction Scope
Runtime instructions tell the agent/user to run the included Python script and optionally add a cron job. The script makes outbound HTTP requests to qt.gtimg.cn and prints JSON alerts to stdout. Notes: the SKILL.md examples use a hard-coded example path under /root/.openclaw which may not match target environments; the Tencent API endpoint is accessed over HTTP (not HTTPS), which allows potential MITM or eavesdropping on requests/responses.
Install Mechanism
No install spec; it's an instruction-only skill with a single Python script. Metadata notes pip dependency 'requests' which matches the code's import. No remote downloads, no archive extraction, and no unusual installers.
Credentials
The skill requires no environment variables, no credentials, and does not read system config paths. The requested resources are proportionate to a simple market-monitoring script.
Persistence & Privilege
always is false, model invocation is normal. The skill does not attempt to modify other skills, system-wide agent settings, or persist credentials. Running it as a cron job is a user action, not forced by the skill.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install etf-monitor
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /etf-monitor 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
etf-monitor v1.0.0 - 实时监控多只 ETF 的价格波动,超出设定阈值时自动告警 - 集成腾讯财经 API,免费且无需 Token - 支持静默模式,无波动时不推送告警 - 用户可自定义监控列表及波动阈值 - 提供定时任务范例与输出格式说明
元数据
Slug etf-monitor
版本 1.0.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 1
常见问题

etf-monitor 是什么?

ETF 波动监控 - 实时跟踪 ETF 涨跌幅,超过阈值自动告警. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 282 次。

如何安装 etf-monitor?

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

etf-monitor 是免费的吗?

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

etf-monitor 支持哪些平台?

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

谁开发了 etf-monitor?

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

💬 留言讨论