Stock Monitor
股票价格实时监控。支持多只股票监控,使用 Yahoo Finance API 获取实时股价,自定义涨跌阈值提醒。当股价波动超过设定阈值时自动发送提醒,支持首次预警和续警机制。用于:(1) 监控持仓股票价格波动 (2) 设置价格提醒 (3) 定期检查股价变化
大斌
@shengbinxu
What This Skill Does
Monitors real-time stock prices for multiple stocks via Yahoo Finance API, sending alerts when price changes exceed user-defined thresholds. Supports initial alerts and follow-up alerts within the same trading day, with automatic base price reset each day.
Replaces manually checking stock prices or setting up separate price alert services by providing a single, configurable monitoring tool with threshold-based notifications.
When to Use It
- Monitor price movements of your portfolio stocks throughout the trading day
- Set up automatic alerts when a stock drops or rises more than 2% from its base price
- Track multiple stocks across A-shares, Hong Kong, and US markets simultaneously
- Receive follow-up alerts when a stock moves an additional 1% after the initial alert
- Automate daily price checks with cron-based scheduled monitoring
Install
$ openclaw skills install @shengbinxu/stock-monitor股票价格监控
实时监控多只股票价格,当波动超过阈值时自动提醒。
快速开始
1. 配置股票列表
创建配置文件 ~/.openclaw/workspace/memory/stocks_config.json:
{
"stocks": {
"贵州茅台": {"symbol": "600519.SS", "base_price": 1600.0, "currency": "¥"},
"腾讯控股": {"symbol": "0700.HK", "base_price": 512.0, "currency": "HK$"},
"拼多多": {"symbol": "PDD", "base_price": 120.0, "currency": "$"}
}
}
配置说明:
symbol: Yahoo Finance 股票代码- A股:
600519.SS(茅台) - 港股:
0700.HK(腾讯) - 美股:
PDD(拼多多),AAPL(苹果)
- A股:
base_price: 基准价(昨日收盘或参考价)currency: 货币符号
2. 运行监控
python3 ~/.openclaw/skills/stock-monitor/scripts/stocks_monitor.py
3. 设置定时任务
# 每5分钟检查一次
openclaw cron add --name "股票监控" --cron "*/5 * * * *" --tz "Asia/Shanghai" --message "运行 python3 ~/.openclaw/workspace/skills/stock-monitor/scripts/stocks_monitor.py 并把输出发给我" --channel discord
预警规则
- 首次预警: 涨跌超过 2%
- 续警: 同一天内,再波动超过 1%
- 重置: 新一天自动重置基准价为前一天收盘价
常用股票代码
| 股票 | 港股代码 | 美股代码 |
|---|---|---|
| 腾讯控股 | 0700.HK | TCEHY |
| 阿里巴巴 | 9988.HK | BABA |
| 美团 | 3690.HK | MPNG |
| 小米 | 1810.HK | XI |
| 茅台 | - | 600519.SS |
状态文件
脚本会自动在 ~/.openclaw/workspace/memory/stocks_alert.json 保存监控状态,包括是否已预警、预警日期等。
Top skills in this category
Stock Analysis
@udiedrichsenAnalyze stocks and cryptocurrencies using Yahoo Finance data. Supports portfolio management, watchlists with alerts, dividend analysis, 8-dimension stock scoring, viral trend detection (Hot Scanner), and rumor/early signal detection. Use for stock analysis, portfolio tracking, earnings reactions, crypto monitoring, trending stocks, or finding rumors before they hit mainstream.
Stock Market Pro
@kys42Yahoo Finance (yfinance) powered stock analysis skill: quotes, fundamentals, ASCII trends, high-resolution charts (RSI/MACD/BB/VWAP/ATR), plus optional web a...
A股量化 AkShare
@mbpzA股量化数据分析工具,基于AkShare库获取A股行情、财务数据、板块信息等。用于回答关于A股股票查询、行情数据、财务分析、选股等问题。
Stock Watcher
@robin797860Manage and monitor a personal stock watchlist with support for adding, removing, listing stocks, and summarizing their recent performance using data from 10jqka.com.cn. Use when the user wants to track specific stocks, get performance summaries, or manage their watchlist.
Intelligent Stocks Screener
@financial-ai-analyst基于东方财富数据库,支持通过自然语言输入筛选A港美股、基金、债券等多种资产,支持多元指标筛选,含技术面、消息面、基本面及市场情绪等,可用于全球资产速筛、跨市场监控、投资组合构建、策略回测等场景。返回结果包含数据说明及 csv 文件。Natural language screener for investment...