← 返回 Skills 市场
55
总下载
0
收藏
0
当前安装
2
版本数
在 OpenClaw 中安装
/install stock-monitor-a
功能描述
股票交易监控系统,通过新浪财经 API 获取 A 股实时行情。支持盘前盘后自动跳过,异常触发即时告警(无需消耗模型 token),支持价格日志自动记录。适用场景:(1) 定时盘中检查,价格触高/触低/涨跌幅超标即时推送 (2) 实时查询股价 (3) 查看每日价格日志与历史日志 (4) 盘前盘后自动过滤无效行情。版...
使用说明 (SKILL.md)
股票交易监控系统 v3.0
A 股实时行情监控,基于新浪财经 API,支持价格/涨跌幅预警、日志记录,零 AI token 消耗。
更新日志
v3.0.0 (2026-06-02)
- 新增监控规则系统(alert_once_per_day / no_alert_silent / alert_pushes_immediately / price_log_auto_record)
- 驱动方式升级为
clawdbot_internal_cron+ Linux crontab 双保险 - 告警推送切换至小艺通道(绕过 token 消耗模型)
- 新增数据库建表脚本(MySQL),支持持久化行情日志与预警记录
- 新增无 token 模式检查脚本
stock_monitor_check.sh - 优化价格日志:记录 API 返回的当日真实最高/最低价,避免快照遗漏极值
运行模式
| 指令 | 说明 |
|---|---|
check |
执行一轮检查,触发预警则返回告警消息 |
query |
返回所有监控股票实时价格 |
log |
查看今日价格日志 |
log_history |
查看最近 7 天日志摘要 |
命令行调用
cd scripts/
python3 stock_monitor_skill.py check
python3 stock_monitor_skill.py query
python3 stock_monitor_skill.py log
python3 stock_monitor_skill.py log_history
配置文件
scripts/stock_config.json:
{
"meta": { "name": "股票交易监控系统配置", "version": "3.0.0" },
"driver": {
"type": "clawdbot_internal_cron",
"cron_expr": "*/10 9-15 * * 1-5",
"timezone": "Asia/Shanghai",
"delivery_channel": "xiaoyi"
},
"trading_hours": {
"morning": "09:30-11:30",
"afternoon": "13:00-15:00"
},
"rules": {
"alert_once_per_day": true,
"no_alert_silent": true,
"alert_pushes_immediately": true,
"price_log_auto_record": true
},
"stocks": [
{ "code": "688599", "name": "天合光能", "price_high": 17, "price_low": 15 },
{ "code": "600000", "name": "浦发银行", "price_high": 10, "price_low": 8 },
{ "code": "000785", "name": "居然智家", "price_high": 2.6, "price_low": 2.25 }
]
}
系统规则
| 规则 | 说明 |
|---|---|
| alert_once_per_day | 同条件当日仅提醒一次,避免重复轰炸 |
| no_alert_silent | 无异常时保持静默,不推送消息 |
| alert_pushes_immediately | 触发预警即时推送,不攒批 |
| price_log_auto_record | 每次 check/query 自动记录价格日志 |
文件结构
stock-monitor-v3.skill/
├── SKILL.md
└── scripts/
├── stock_config.json
└── stock_monitor_skill.py
安全使用建议
Before installing, review the stock list, thresholds, cron schedule, and delivery target. Expect local price and alert history files to be created, and clear or disable those logs manually if you do not want monitoring history retained.
能力评估
Purpose & Capability
The artifacts consistently implement A-share stock monitoring, threshold checks, realtime queries, local price logs, and alert summaries; there is no trading, account access, credential collection, or unrelated behavior.
Instruction Scope
Automatic check/query logging and once-per-day alert state are disclosed in the README-style instructions, though retention and deletion controls are not specified.
Install Mechanism
The skill includes a Python script and JSON config only; it describes cron-style scheduling but does not include install scripts, package installation, shell persistence setup, or destructive commands.
Credentials
Network access is limited to Sina Finance quote requests for configured public stock codes, and local writes are limited to state/log JSON files in the skill directory.
Persistence & Privilege
It persists local files for daily price logs and alert de-duplication, which is purpose-aligned for monitoring; the config also includes a fixed alert delivery target that users should review before enabling scheduled pushes.
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install stock-monitor-a - 安装完成后,直接呼叫该 Skill 的名称或使用
/stock-monitor-a触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.1
No file changes detected in this version.
- No updates or modifications have been made to the skill files.
- Functionality and configuration remain the same as the previous version.
v1.0.0
股票交易监控系统 v3.0.0 发布,升级预警与日志能力:
- 新增每日仅报一次、异常即推、无异常静默等灵活监控规则
- 支持价格日志自动记录与 MySQL 持久化行情/告警
- 告警推送切换至小艺通道,实现零 AI token 消耗
- 增加外部定时任务双驱动,提升运行可靠性
- 优化价格日志能力,避免极值遗漏
元数据
常见问题
stock-monitor-a 是什么?
股票交易监控系统,通过新浪财经 API 获取 A 股实时行情。支持盘前盘后自动跳过,异常触发即时告警(无需消耗模型 token),支持价格日志自动记录。适用场景:(1) 定时盘中检查,价格触高/触低/涨跌幅超标即时推送 (2) 实时查询股价 (3) 查看每日价格日志与历史日志 (4) 盘前盘后自动过滤无效行情。版... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 55 次。
如何安装 stock-monitor-a?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install stock-monitor-a」即可一键安装,无需额外配置。
stock-monitor-a 是免费的吗?
是的,stock-monitor-a 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
stock-monitor-a 支持哪些平台?
stock-monitor-a 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 stock-monitor-a?
由 likepost(@likepost)开发并维护,当前版本 v1.0.1。
推荐 Skills