← 返回 Skills 市场
mli-cj

Google Finance Stock Tracker

作者 mli-cj · GitHub ↗ · v1.1.0
darwinlinuxwin32 ✓ 安全检测通过
440
总下载
0
收藏
2
当前安装
6
版本数
在 OpenClaw 中安装
/install google-finance
功能描述
Track stock prices and company news from Google Finance on a schedule. Use when user wants to monitor stocks, get buy/sell recommendations, check price chang...
使用说明 (SKILL.md)

Stock Tracker

Monitor stocks, generate buy/sell signals, and track your portfolio.

Quick Start

Check all watched stocks (auto-fetches data):

python3 {baseDir}/scripts/parse-stock.py --check --summary

Check single stock:

python3 {baseDir}/scripts/parse-stock.py --check --symbol AAPL

Add/remove stocks:

python3 {baseDir}/scripts/parse-stock.py --add TSLA
python3 {baseDir}/scripts/parse-stock.py --remove TSLA

Show watchlist:

python3 {baseDir}/scripts/parse-stock.py --list

How It Works

The parse-stock.py script handles everything:

  1. Fetches data from Google Finance (no API key required!)
  2. Calculates scores based on momentum, volume, valuation
  3. Generates signals (BUY / HOLD / SELL)
  4. Updates state in ~/.openclaw/workspace/stock-tracker-state.json

Analysis Framework

Apply the scoring framework in {baseDir}/references/analysis-framework.md to produce:

Symbol: AAPL
Price: $182.30  (+1.4% today)
Signal: BUY  [score: +6/10]
Confidence: MEDIUM

Key factors:
  ✅ Price above 50-day SMA (estimated)
  ✅ Volume 1.3× above average
  ✅ 2 positive news items in past 24h
  ⚠️  P/E 28.5 — elevated but within sector norm
  ❌ Within 3% of 52-week high (limited upside)

Recent headlines:
  • "Apple reportedly in talks with..." — Reuters (2h ago)
  • "iPhone sales beat estimates..." — Bloomberg (5h ago)

Recommendation: Consider buying on dips. Set stop-loss at 5% below current price.

4. Persist State

Store watchlist and last-seen prices in ~/.openclaw/workspace/stock-tracker-state.json.

Default watchlist (pre-loaded on first run if state file does not exist):

  • NVDA:NASDAQ — NVIDIA
  • AAPL:NASDAQ — Apple
  • META:NASDAQ — Meta Platforms
  • GOOGL:NASDAQ — Alphabet (Google)

Format:

{
  "watchlist": ["NVDA:NASDAQ", "AAPL:NASDAQ", "META:NASDAQ", "GOOGL:NASDAQ"],
  "lastChecked": "2026-03-03T09:00:00Z",
  "snapshots": {
    "NVDA:NASDAQ": { "price": 875.40, "change_pct": 2.1, "ts": "2026-03-03T09:00:00Z" },
    "AAPL:NASDAQ": { "price": 182.30, "change_pct": 1.4, "ts": "2026-03-03T09:00:00Z" },
    "META:NASDAQ": { "price": 512.60, "change_pct": -0.8, "ts": "2026-03-03T09:00:00Z" },
    "GOOGL:NASDAQ": { "price": 175.20, "change_pct": 0.5, "ts": "2026-03-03T09:00:00Z" }
  }
}

Load state at the start of every run. Compare new price against snapshots to compute Δ since last check.

5. Alert on Significant Moves

Emit a highlighted alert if any of the following thresholds are crossed:

  • Price change > ±3% since last check
  • Volume > 2× 30-day average
  • Any headline contains keywords: earnings, merger, acquisition, SEC, lawsuit, recall, CEO, bankruptcy

Setting Up a Cron Schedule

Run the following to add a recurring job that checks stocks every weekday at market open (09:30 ET) and close (16:00 ET):

# Market open — 09:30 ET (UTC-4 during EDT)
openclaw cron add \
  --name "Stock Open Check" \
  --cron "30 13 * * 1-5" \
  --tz "America/New_York" \
  --session isolated \
  --message "Run /stock-tracker check and output a full report with buy/sell signals for all watched stocks." \
  --announce \
  --channel slack \
  --to "channel:REPLACE_WITH_CHANNEL_ID"

# Market close — 16:00 ET
openclaw cron add \
  --name "Stock Close Check" \
  --cron "0 20 * * 1-5" \
  --tz "America/New_York" \
  --session isolated \
  --message "Run /stock-tracker check and output end-of-day summary with buy/sell signals for all watched stocks." \
  --announce

For a simpler every-4-hours check (including after-hours):

openclaw cron add \
  --name "Stock Tracker" \
  --every 14400000 \
  --session isolated \
  --message "Run /stock-tracker check for all watched symbols. Report price changes > 1%, news, and signals."

See {baseDir}/references/data-sources.md for timezone and exchange hours reference.


Output Format Rules

  • Always show: symbol, price, change %, signal, top 3 headlines
  • If multiple stocks: group by signal (BUY first, then HOLD, then SELL)
  • Use emoji prefix: 🟢 BUY / 🟡 HOLD / 🔴 SELL
  • Append ⚠️ ALERT to any symbol that crossed a threshold
  • End every report with a disclaimer: "This is not financial advice. Data sourced from Google Finance."

Limitations & Notes

  • Google Finance does not provide real-time Level 2 data; prices may be 15 min delayed for some exchanges.
  • This skill cannot execute trades. Recommendations are informational only.
  • For non-US stocks, use the exchange suffix (e.g. 0700.HK, 7203.T, BABA.N). See data-sources.md for the full mapping.
  • If Google Finance blocks the browser session, fall back to Yahoo Finance scraping as described in data-sources.md.

External Endpoints

This skill makes outbound requests to the following public URLs only:

URL Purpose
https://www.google.com/finance/quote/* Stock price & stats

No user data, credentials, or personal information is sent to any external endpoint.


Security & Privacy

  • No credentials required. All data is fetched from public Google Finance pages.
  • Local state only. The watchlist and price snapshots are stored exclusively at ~/.openclaw/workspace/stock-tracker-state.json on your machine. Nothing is sent to remote servers.
  • No browser required. Data is fetched via HTTP requests and parsed from HTML. No JavaScript execution.
  • parse-stock.py is sandboxed. It reads/writes only the state file at the path above. It does not access environment variables or other files.
  • Buy/sell signals are heuristic only. No financial data or decisions are transmitted anywhere. All analysis runs locally.
安全使用建议
This skill appears to do what it says: it scrapes Google Finance (with documented fallbacks), computes heuristic buy/hold/sell signals, and stores a local watchlist file at ~/.openclaw/workspace/stock-tracker-state.json. Before installing: (1) inspect the bundled scripts yourself to confirm you accept the scraping behavior and parsing heuristics; (2) be aware that scheduling cron jobs via the provided openclaw cron examples can cause unattended runs and (depending on your OpenClaw configuration) can post results to channels like Slack — verify the target channel and platform permissions first; (3) the script performs scraping (fragile and subject to site rate limits/blocking), so monitor for failures or excessive requests; and (4) set appropriate file permissions on the state file if you are concerned about local access. If you want extra assurance, run the script manually first and review network traffic before enabling automated cron runs.
功能分析
Type: OpenClaw Skill Name: google-finance Version: 1.1.0 The google-finance skill is a legitimate tool for monitoring stock prices and news. The core logic in scripts/parse-stock.py uses standard Python libraries to fetch public data from Google Finance and manages a local state file in a dedicated workspace directory (~/.openclaw/workspace/). There is no evidence of data exfiltration, unauthorized execution, or malicious prompt injection. The skill's behavior aligns perfectly with its stated purpose and documentation.
能力评估
Purpose & Capability
Name/description match the implementation: the included Python script implements fetching/parsing Google Finance pages, computing scores, and persisting a local watchlist. Required binary is python3 (appropriate). No unrelated environment variables, binaries, or platform-level access are requested.
Instruction Scope
SKILL.md instructs running the bundled parse-stock.py and persisting state at ~/.openclaw/workspace/stock-tracker-state.json only. It documents network access to Google Finance and fallback sources (Yahoo, Stooq, Google News) which align with the purpose. Note: the cron examples use the OpenClaw 'openclaw cron add' command and show posting to a channel (e.g., Slack) — scheduling/posting behavior depends on OpenClaw platform configuration and chosen channel IDs; review those options before enabling unattended reports.
Install Mechanism
Instruction-only skill with a bundled Python script; there is no installer that downloads or executes remote archives. This is a low-risk install model (script is included in the package).
Credentials
No environment variables or credentials are required or declared. The script's security manifest and code indicate it does not read environment secrets and only writes/reads the declared local state file. Outbound network calls are limited to the documented public endpoints.
Persistence & Privilege
The skill does not request always:true and will not force inclusion. It persists a small local state file under the user's home (~/.openclaw/workspace/stock-tracker-state.json), which is appropriate for a watchlist. Autonomous invocation is allowed by default (platform normal); cron scheduling is optional and controlled by the user.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install google-finance
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /google-finance 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.1.0
Switch data source from Yahoo Finance API to Google Finance (HTML parsing). No API key or browser required.
v1.0.4
Fix: escape percent sign in argparse help string to prevent crash on --help
v1.0.3
Fix README: add installation instructions, English only
v1.0.2
Fix README: use English only
v1.0.1
No user-visible changes. - Version bump to 1.0.1 with no detected file or documentation updates. - All functionality, usage, and documentation remain unchanged from the previous release.
v1.0.0
Initial release of Google Finance stock tracker skill. - Track stock prices and company news from Google Finance on a schedule. - Add, remove, list, and check multiple stocks; supports US and international symbols. - Generates buy/sell/hold signals based on price, volume, and news analysis. - Alerts for significant moves, high volume, or key headline keywords. - Stores all watchlist data and price history locally—no credentials or user data sent externally. - Includes cron scheduling examples for automatic market open/close checks.
元数据
Slug google-finance
版本 1.1.0
许可证
累计安装 2
当前安装数 2
历史版本数 6
常见问题

Google Finance Stock Tracker 是什么?

Track stock prices and company news from Google Finance on a schedule. Use when user wants to monitor stocks, get buy/sell recommendations, check price chang... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 440 次。

如何安装 Google Finance Stock Tracker?

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

Google Finance Stock Tracker 是免费的吗?

是的,Google Finance Stock Tracker 完全免费(开源免费),可自由下载、安装和使用。

Google Finance Stock Tracker 支持哪些平台?

Google Finance Stock Tracker 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(darwin, linux, win32)。

谁开发了 Google Finance Stock Tracker?

由 mli-cj(@mli-cj)开发并维护,当前版本 v1.1.0。

💬 留言讨论