A-Stock Reporter

v1.0.0

A股实时行情报告与定时推送。支持用户主动查询个股、生成市场简报、查询历史日报,也可由cron定时触发交易时段报告(9:30/10:30/11:30/13:30/14:30)。激活关键词:股票日报、A股简报、查股票、市场报告、每日研报、历史日报、查询过去。NOT for 美股、港股、期货、基金等非A股资产。

1· 370·1 current·1 all-time
bylaojun@laojun509

Install

OpenClaw Prompt Flow

Install with OpenClaw

Best for remote or guided setup. Copy the exact prompt, then paste it into OpenClaw for laojun509/a-stock-reporter.

Previewing Install & Setup.
Prompt PreviewInstall & Setup
Install the skill "A-Stock Reporter" (laojun509/a-stock-reporter) from ClawHub.
Skill page: https://clawhub.ai/laojun509/a-stock-reporter
Keep the work scoped to this skill only.
After install, inspect the skill metadata and help me finish setup.
Use only the metadata you can verify from ClawHub; do not invent missing requirements.
Ask before making any broader environment changes.

Command Line

CLI Commands

Use the direct CLI path if you want to install manually and keep every step visible.

OpenClaw CLI

Bare skill slug

openclaw skills install a-stock-reporter

ClawHub CLI

Package manager switcher

npx clawhub@latest install a-stock-reporter
Security Scan
VirusTotalVirusTotal
Benign
View report →
OpenClawOpenClaw
Benign
high confidence
Purpose & Capability
Name/description, SKILL.md, and the included Python scripts (query_stock.py, market_brief.py, trading_update.py, historical_report.py) are consistent: they fetch A‑share market data, format briefs, save reports, and support cron triggering. Declared dependencies (easyquotation, requests, akshare) match the implemented network data access.
Instruction Scope
Runtime instructions are focused on querying and reporting market data and show exact commands to run the included scripts. The only scope issue is cron_runner.sh which hardcodes SKILL_DIR and VENV to /root/.openclaw/... — this assumes a specific installation location and root user; otherwise the instructions do not attempt to read unrelated system files or hidden credentials. All network calls are to expected market-data endpoints (sina/tencent/AKShare).
Install Mechanism
No install spec is provided (instruction-only), and included code is plain Python. There is no download-from-URL or archive extraction. Dependency installation is via pip, which is appropriate for this Python skill.
Credentials
The skill requests no environment variables or credentials, which is appropriate. It does require network access to public market-data endpoints (e.g., web.ifzq.gtimg.cn and sources used by easyquotation/AKShare). It writes saved reports under the skill's assets/reports directory. The main proportionality note is the hardcoded file paths in cron_runner.sh pointing to /root — this could cause unexpected file writes if run as root or fail if that layout doesn't exist.
Persistence & Privilege
The skill is not marked always:true and does not request elevated platform privileges. It suggests adding a cron entry (user action) but does not autonomously modify other skills or system-wide configuration. It will create and write report files in its assets directory.
Assessment
This skill appears to do what it claims: fetch A‑share market data, format reports, save historical reports, and support cron-triggered updates. Before installing or enabling it: 1) Review and, if necessary, edit cron_runner.sh to avoid hardcoded /root/.openclaw paths — set SKILL_DIR and VENV to locations you control and avoid running as root. 2) Understand it makes outbound HTTP requests to public market-data endpoints (sina/tencent/AKShare); ensure your environment allows this and you’re comfortable with those providers. 3) Install dependencies in a virtualenv you control (pip install easyquotation requests akshare) and run the scripts under a non-root user. 4) The skill writes saved reports to assets/reports inside the skill folder — verify that path and permissions are acceptable. 5) Do not add cron entries unless you trust the code; examine third-party library behavior (easyquotation/AKShare) if you need stricter privacy or rate-limit controls. 6) No credentials are requested by the skill, so credential exfiltration is not evident in the code, but network access and file writes are normal risks to consider.

Like a lobster shell, security has layers — review code before you run it.

a-sharevk97bvcmrnbdw6wq8n3kpk4vq7n82ehxkdaily-reportvk97bvcmrnbdw6wq8n3kpk4vq7n82ehxkinvestmentvk97bvcmrnbdw6wq8n3kpk4vq7n82ehxklatestvk97bvcmrnbdw6wq8n3kpk4vq7n82ehxkmarketvk97bvcmrnbdw6wq8n3kpk4vq7n82ehxkstockvk97bvcmrnbdw6wq8n3kpk4vq7n82ehxk
370downloads
1stars
1versions
Updated 1mo ago
v1.0.0
MIT-0

A股行情报告系统

A股实时行情查询与自动报告生成,支持手动查询和定时推送。

使用场景

1. 用户主动查询个股

# 查询特定股票
python {baseDir}/scripts/query_stock.py 600519

# 查询多只股票
python {baseDir}/scripts/query_stock.py 600519 000858 300750

2. 生成市场简报

# 大盘概览 + 板块表现 + 热门个股
python {baseDir}/scripts/market_brief.py

3. 定时触发(由cron调用)

# 交易时段自动报告
python {baseDir}/scripts/trading_update.py --time 0930
python {baseDir}/scripts/trading_update.py --time 1030
python {baseDir}/scripts/trading_update.py --time 1130
python {baseDir}/scripts/trading_update.py --time 1330
python {baseDir}/scripts/trading_update.py --time 1430

4. 查询历史日报 ⭐ 新增

# 查询指定日期的历史报告(优先查已保存的报告)
python {baseDir}/scripts/historical_report.py --date 2025-03-05

# 仅查询已保存的报告(离线模式)
python {baseDir}/scripts/historical_report.py --date 2025-03-05 --offline

# 查询并保存到文件
python {baseDir}/scripts/historical_report.py --date 2025-03-01 --save

工作原理

  1. 首先检查是否有保存的日报文件
  2. 如果没有,尝试在线获取历史数据
  3. 支持离线查询已保存的历史报告

日期格式: YYYY-MM-DD,如 2025-03-05

输出格式

个股查询输出示例

📈 贵州茅台 (600519)
━━━━━━━━━━━━━━━━━━━━
最新价: ¥1,688.00
涨跌幅: +2.35% 📈
成交量: 12.5万手
成交额: 21.1亿元
振幅: 3.2%
所属板块: 白酒 ⭐核心资产

市场简报输出示例

📊 A股市场简报 - 09:30
━━━━━━━━━━━━━━━━━━━━
【大盘概况】
上证指数: 3,082.47 (-0.98%)
深证成指: 11,917.75 (-0.75%)
创业板指: 2,164.37 (-1.41%)

【板块表现】
🔥 领涨: 白酒 +2.1%, 新能源 +1.8%
📉 领跌: 半导体 -2.5%, 医药 -1.9%

【热门个股】
涨停: 603XXX, 002XXX
跌停: 300XXX, 688XXX

【市场立场】
震荡偏弱,建议观望或轻仓

历史日报输出示例 ⭐ 新增

📊 A股历史日报 - 2024-03-01 (复盘)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

【大盘回顾】
上证指数: 3,027.02 (+0.39%) 📈 | 量:412亿
深证成指: 9,432.33 (+1.12%) 📈 | 量:538亿
创业板指: 1,824.44 (+1.20%) 📈 | 量:251亿

【当日特征】
上证振幅: 1.23%
成交金额: 412亿元

【市场立场(复盘)】
📈 震荡上行,适度参与

💡 提示: 历史数据仅供参考,不构成投资建议

数据参考

板块分类与股票池见 references/ 目录:

  • sectors.json - 板块分类及成分股
  • watchlist.json - 重点观察名单
  • rules.md - 策略规则说明

股票代码格式

  • 个股: 直接输入6位代码,如 600519
  • 上证指数: sh000001
  • 深证成指: sz399001
  • 创业板指: sz399006

依赖

pip install easyquotation requests akshare

定时配置示例

# A股交易日定时推送 (周一至周五, 排除节假日)
30 9 * * 1-5 python {baseDir}/scripts/trading_update.py --time 0930
30 10 * * 1-5 python {baseDir}/scripts/trading_update.py --time 1030
30 11 * * 1-5 python {baseDir}/scripts/trading_update.py --time 1130
30 13 * * 1-5 python {baseDir}/scripts/trading_update.py --time 1330
30 14 * * 1-5 python {baseDir}/scripts/trading_update.py --time 1430

数据来源

  • 新浪财经实时行情(easyquotation)
  • 腾讯财经大盘数据
  • AKShare历史数据(日线数据)

Comments

Loading comments...