← Back to Skills Marketplace
likepost

stock-monitor-a

by likepost · GitHub ↗ · v1.0.1 · MIT-0
cross-platform ✓ Security Clean
55
Downloads
0
Stars
0
Active Installs
2
Versions
Install in OpenClaw
/install stock-monitor-a
Description
股票交易监控系统,通过新浪财经 API 获取 A 股实时行情。支持盘前盘后自动跳过,异常触发即时告警(无需消耗模型 token),支持价格日志自动记录。适用场景:(1) 定时盘中检查,价格触高/触低/涨跌幅超标即时推送 (2) 实时查询股价 (3) 查看每日价格日志与历史日志 (4) 盘前盘后自动过滤无效行情。版...
README (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
Usage Guidance
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.
Capability Assessment
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.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install stock-monitor-a
  3. After installation, invoke the skill by name or use /stock-monitor-a
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
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 消耗 - 增加外部定时任务双驱动,提升运行可靠性 - 优化价格日志能力,避免极值遗漏
Metadata
Slug stock-monitor-a
Version 1.0.1
License MIT-0
All-time Installs 0
Active Installs 0
Total Versions 2
Frequently Asked Questions

What is stock-monitor-a?

股票交易监控系统,通过新浪财经 API 获取 A 股实时行情。支持盘前盘后自动跳过,异常触发即时告警(无需消耗模型 token),支持价格日志自动记录。适用场景:(1) 定时盘中检查,价格触高/触低/涨跌幅超标即时推送 (2) 实时查询股价 (3) 查看每日价格日志与历史日志 (4) 盘前盘后自动过滤无效行情。版... It is an AI Agent Skill for Claude Code / OpenClaw, with 55 downloads so far.

How do I install stock-monitor-a?

Run "/install stock-monitor-a" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is stock-monitor-a free?

Yes, stock-monitor-a is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does stock-monitor-a support?

stock-monitor-a is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created stock-monitor-a?

It is built and maintained by likepost (@likepost); the current version is v1.0.1.

💬 Comments