Google Finance Stock Tracker — Google Finance Stock 追踪er
v1.1.0追踪 stock prices and company news from Google Finance on a schedule. Use when user wants to 监控 stocks, 获取 buy/sell recommendations, 检查 price changes, follow company news, 设置 up stock alerts, or 追踪 portfolio symbols. Triggers: '追踪 stock', 'watch AAPL', 'stock alert', 'buy or sell', 'stock news', 'Google Finance'. Default watch列出: NVDA, AAPL, META, GOOGL.
运行时依赖
安装命令
点击复制技能文档
Stock 追踪er
监控 stocks, 生成 buy/sell 签名als, and 追踪 your portfolio.
Quick 启动
检查 all watched stocks (auto-fetches data):
python3 {baseDir}/scripts/解析-stock.py --检查 --summary
检查 single stock:
python3 {baseDir}/scripts/解析-stock.py --检查 --symbol AAPL
添加/移除 stocks:
python3 {baseDir}/scripts/解析-stock.py --添加 TSLA python3 {baseDir}/scripts/解析-stock.py --移除 TSLA
Show watch列出:
python3 {baseDir}/scripts/解析-stock.py --列出
How It Works
The 解析-stock.py script handles everything:
Fetches data from Google Finance (no API key required!) Calculates scores based on momentum, volume, valuation 生成s 签名als (BUY / HOLD / SELL) 更新s 状态 in ~/.OpenClaw/workspace/stock-追踪er-状态.json Analysis 框架
应用ly the scoring 框架 in {baseDir}/references/analysis-框架.md to produce:
Symbol: AAPL Price: $182.30 (+1.4% today) 签名al: 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: • "应用le 报告edly in talks with..." — Reuters (2h ago) • "iPhone sales beat estimates..." — Bloomberg (5h ago)
Recommendation: Consider buying on dips. 设置 停止-loss at 5% below current price.
- Persist 状态
Store watch列出 and last-seen prices in ~/.OpenClaw/workspace/stock-追踪er-状态.json.
Default watch列出 (pre-loaded on first 运行 if 状态 file does not exist):
NVDA:NASDAQ — NVIDIA AAPL:NASDAQ — 应用le META:NASDAQ — Meta 平台s GOOGL:NASDAQ — Alphabet (Google)
格式化:
{ "watch列出": ["NVDA:NASDAQ", "AAPL:NASDAQ", "META:NASDAQ", "GOOGL:NASDAQ"], "last检查ed": "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 状态 at the 启动 of every 运行. Compare new price agAInst snapshots to compute Δ since last 检查.
- Alert on 签名ificant Moves
Emit a highlighted alert if any of the following thresholds are crossed:
Price change > ±3% since last 检查 Volume > 2× 30-day average Any headline contAIns keywords: earnings, merger, acquisition, SEC, lawsuit, recall, CEO, bankruptcy 设置ting Up a Cron Schedule
运行 the following to 添加 a recurring job that 检查s 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 添加 \ --name "Stock Open 检查" \ --cron "30 13 1-5" \ --tz "America/New_York" \ --会话 isolated \ --message "运行 /stock-追踪er 检查 and 输出 a full 报告 with buy/sell 签名als for all watched stocks." \ --announce \ --channel slack \ --to "channel:REPLACE_WITH_CHANNEL_ID"
# Market close — 16:00 ET OpenClaw cron 添加 \ --name "Stock Close 检查" \ --cron "0 20 1-5" \ --tz "America/New_York" \ --会话 isolated \ --message "运行 /stock-追踪er 检查 and 输出 end-of-day summary with buy/sell 签名als for all watched stocks." \ --announce
For a simpler every-4-hours 检查 (including after-hours):
OpenClaw cron 添加 \ --name "Stock 追踪er" \ --every 14400000 \ --会话 isolated \ --message "运行 /stock-追踪er 检查 for all watched symbols. 报告 price changes > 1%, news, and 签名als."
See {baseDir}/references/data-sources.md for timezone and exchange hours reference.
输出 格式化 Rules Always show: symbol, price, change %, 签名al, top 3 headlines If multiple stocks: group by 签名al (BUY first, then HOLD, then SELL) Use emoji prefix: 🟢 BUY / 🟡 HOLD / 🔴 SELL 应用end ⚠️ ALERT to any symbol that crossed a threshold End every 报告 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 技能 cannot 执行 trades. Recommendations are in格式化ional only. For non-US stocks, use the exchange suffix (e.g. 0700.HK, 7203.T, BABA.N). See data-sources.md for the full m应用ing. If Google Finance blocks the browser 会话, fall back to Yahoo Finance scrAPIng as described in data-sources.md. External 端点s
This 技能 makes outbound 请求s to the following public URLs only:
URL Purpose https://www.google.com/finance/quote/* Stock price & stats
No user data, 凭证s, or personal in格式化ion is sent to any external 端点.
Security & 隐私 No 凭证s required. All data is fetched from public Google Finance pages. Local 状态 only. The watch列出 and price snapshots are stored exclusively at ~/.OpenClaw/workspace/stock-追踪er-状态.json on your machine. Nothing is s