← 返回 Skills 市场
港股美股监控
作者
sanduan003
· GitHub ↗
· v1.1.0
846
总下载
0
收藏
9
当前安装
2
版本数
在 OpenClaw 中安装
/install stock-monitor-hkus
功能描述
港股/美股/加密货币实时监控。使用 Yahoo Finance (yfinance) 获取实时价格、技术指标监控。支持自定义股票池、涨跌提醒、均线/RSI/MACD信号。
安全使用建议
This skill appears to do exactly what it claims: fetch market data via yfinance, compute indicators, print results, and save a small state file. Before installing or running it: 1) Inspect and (preferably) change the hard-coded state path '/Users/apple/.openclaw/workspace/memory/stocks_monitor.json' to a path appropriate for your environment or make it configurable; otherwise it may fail or write into an unexpected home directory. 2) Install packages inside a virtualenv (avoid '--break-system-packages') to prevent altering system Python packages. 3) Confirm you are comfortable with the script contacting Yahoo Finance (yfinance) over the network. 4) If you plan automated runs (cron), ensure the working directory and Python environment are set correctly. 5) If you need alerts or external posting, add explicit code that sends data to your chosen endpoint and review that code carefully before supplying credentials.
功能分析
Type: OpenClaw Skill
Name: stock-monitor-hkus
Version: 1.1.0
The skill provides stock and cryptocurrency monitoring using the yfinance library. However, `scripts/monitor.py` contains a hardcoded absolute file path (`/Users/apple/.openclaw/workspace/memory/stocks_monitor.json`) for saving state, which is a significant implementation flaw and a potential security risk if the environment matches the hardcoded path. While there is no evidence of intentional data exfiltration or backdoors, the use of specific absolute paths instead of relative workspace paths is considered a high-risk vulnerability.
能力评估
Purpose & Capability
Name/description (real-time monitoring using yfinance, indicators, alerts) match the included script: it fetches data via yfinance, computes MA/RSI/MACD and prints results. Requiring yfinance and numpy is appropriate.
Instruction Scope
SKILL.md instructs to install yfinance/numpy and run scripts/monitor.py, which is accurate. The script only fetches market data and writes a small JSON state file, so runtime behavior stays within the declared purpose. However the SKILL.md references a relative state path 'memory/stocks_monitor.json' while the script writes to a hard-coded absolute path '/Users/apple/.openclaw/workspace/memory/stocks_monitor.json' — an inconsistency that may cause file-write failures or unintended writes to a user-specific location.
Install Mechanism
This is an instruction-only skill with no install spec. SKILL.md asks users to run 'pip3 install yfinance numpy --break-system-packages'. Installing these packages is expected, but the '--break-system-packages' flag is unusual and can alter system Python package protections; recommend using a virtual environment instead.
Credentials
The skill requests no environment variables or credentials. The only external dependency is network access to Yahoo Finance via yfinance, which is appropriate for the stated functionality.
Persistence & Privilege
always:false and the skill does not modify other skills or system settings. It does persist a small JSON state file to a hard-coded user path (/Users/apple/...), which is a low-privilege action but user-specific and brittle; consider making the path configurable or relative to the agent workspace.
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install stock-monitor-hkus - 安装完成后,直接呼叫该 Skill 的名称或使用
/stock-monitor-hkus触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.1.0
**新增:支持更多技术指标和加密货币行情**
- 新增 RSI 和 MACD 技术指标监控与信号判断,优化均线分析
- 默认股票池扩展覆盖港股、美股与加密货币主流标的
- 支持 numpy 库,相关依赖更新完善
- 简化并优化自定义股票池、信号展示和输出格式
- 新增 _meta.json 文件以提升技能元数据管理
v1.0.0
- Initial release: real-time monitoring for Hong Kong and US stocks using Yahoo Finance (yfinance).
- Supports custom stock pool, price alerts, moving average and crossover signals.
- Provides real-time prices, 5-day price change, and volume statistics.
- Technical indicators: MA5/MA10, crossover detection, price position analysis.
- Output monitoring summaries with signal recommendations (持有/观望/上涨/下跌).
- Cron job support for automated periodic checks.
元数据
常见问题
港股美股监控 是什么?
港股/美股/加密货币实时监控。使用 Yahoo Finance (yfinance) 获取实时价格、技术指标监控。支持自定义股票池、涨跌提醒、均线/RSI/MACD信号。 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 846 次。
如何安装 港股美股监控?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install stock-monitor-hkus」即可一键安装,无需额外配置。
港股美股监控 是免费的吗?
是的,港股美股监控 完全免费(开源免费),可自由下载、安装和使用。
港股美股监控 支持哪些平台?
港股美股监控 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 港股美股监控?
由 sanduan003(@sanduan003)开发并维护,当前版本 v1.1.0。
推荐 Skills