← 返回 Skills 市场
A Stock Analysis.Bak
作者
litiao1224
· GitHub ↗
· v1.0.0
· MIT-0
201
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install a-stock-analysis-bak
功能描述
提供沪深北交所A股实时行情查询、分时成交量分析、主力资金动态判断及持仓盈亏管理功能。
使用说明 (SKILL.md)
A股实时行情与分时量能分析
使用东方财富和新浪财经接口获取A股数据,支持实时行情、分时K线、量能分析。
快速开始
实时行情
# 单只股票
uv run {baseDir}/scripts/analyze.py 600789
# 多只股票
uv run {baseDir}/scripts/analyze.py 600789 002446 002342
# 含分时量能分析
uv run {baseDir}/scripts/analyze.py 600789 --minute
# JSON输出
uv run {baseDir}/scripts/analyze.py 600789 --json
持仓管理
# 显示持仓
uv run {baseDir}/scripts/portfolio.py show
# 添加持仓
uv run {baseDir}/scripts/portfolio.py add 600789 --cost 10.416 --qty 3400
# 更新持仓
uv run {baseDir}/scripts/portfolio.py update 600789 --cost 10.2
# 删除持仓
uv run {baseDir}/scripts/portfolio.py remove 600789
# 分析所有持仓(含分时量能)
uv run {baseDir}/scripts/portfolio.py analyze
股票代码格式
直接使用6位数字代码即可,系统自动识别市场:
- 沪市: 6开头 (如 600789)
- 深市: 0或3开头 (如 002446, 300001)
- 北交所: 8或4开头
分时量能分析说明
成交分布时段
| 时段 | 说明 |
|---|---|
| 早盘30分 (9:30-10:00) | 主力早盘动作,>30%为抢筹信号 |
| 上午中段 (10:00-11:30) | 正常交易 |
| 下午中段 (13:00-14:30) | 正常交易 |
| 尾盘30分 (14:30-15:00) | >25%为尾盘异动信号 |
主力动向信号
- 早盘放量 >30%: 主力早盘抢筹
- 早盘放量 >40%: 主力强势介入
- 尾盘放量 >15%: 尾盘有一定放量
- 尾盘放量 >25%: 可能有主力抢筹或出货
- 封板状态: 涨停/跌停,关注封单量
放量时段 TOP 10
显示当日成交量最大的10个分钟,用于识别:
- 主力建仓/出货时机
- 重大消息发布时点
- 涨停封板/开板时刻
数据源
统一使用新浪财经接口,数据一致性好:
| 数据 | 接口 | 延迟 |
|---|---|---|
| 实时行情 | hq.sinajs.cn |
~3秒 |
| 分时K线 | CN_MarketDataService.getKLineData |
~1分钟 |
支持批量获取,减少请求次数。
输出示例
============================================================
股票: 鲁抗医药 (600789)
============================================================
【实时行情】
现价: 10.32 涨跌: +0.88%
今开: 10.20 最高: 10.77 最低: 9.82
昨收: 10.23 换手: 2.38%
成交量: 218.2万手 成交额: 22.51亿
【分时量能分析】鲁抗医药
全天成交: 2181838手 (225105.3万元)
成交分布:
早盘30分(9:30-10:00): 907228手 (41.6%)
上午中段(10:00-11:30): 866457手 (39.7%)
下午中段(13:00-14:30): 181321手 (8.3%)
尾盘30分(14:30-15:00): 225180手 (10.3%)
放量时段 TOP 10:
09:31:00 价格:10.03 成交:216545手 金额:21965.3万
...
【主力动向判断】
🔥 早盘主力抢筹明显
持仓文件
持仓数据存储在: ~/.clawdbot/skills/a-stock-analysis/portfolio.json
限制
- 仅支持A股(沪深北交所)
- 交易时段外获取的是收盘数据
- 分时数据最多250条(约1个交易日)
安全使用建议
This skill appears to do what it says: fetch public A‑share data from Sina, analyze minute-volume, and store a local portfolio file. Before installing, consider: (1) the scripts make outbound HTTP requests to public Sina endpoints — ensure network egress is acceptable; (2) portfolio data will be stored at ~/.clawdbot/skills/a-stock-analysis/portfolio.json (back it up if needed); (3) there are no requested credentials or secret exfiltration patterns in the files, but you should still review the scripts yourself if you need higher assurance; (4) note the SKILL.md briefly mentions another data source (东方财富) but the bundled code uses Sina only — this is a minor documentation mismatch, not a functionality or security problem.
功能分析
Type: OpenClaw Skill
Name: a-stock-analysis-bak
Version: 1.0.0
The skill bundle provides legitimate tools for A-share stock market analysis and portfolio management using Sina Finance's public APIs. The Python scripts (analyze.py and portfolio.py) perform standard data fetching and local JSON storage within a designated directory (~/.clawdbot/skills/a-stock-analysis/), with no evidence of malicious execution, data exfiltration, or prompt injection.
能力评估
Purpose & Capability
Name/description promise realtime A‑share quotes, minute volume analysis and portfolio management; included scripts fetch Sina finance data, analyze minute-volume, and manage a local portfolio file — these are coherent with the stated purpose. Minor wording inconsistency: SKILL.md sometimes mentions '东方财富' as a data source but the code consistently uses Sina endpoints.
Instruction Scope
Runtime instructions show running the included Python scripts (analyze.py / portfolio.py). The scripts only perform HTTP requests to Sina endpoints, parse data, and read/write a single portfolio JSON under the skill's own path in the user's home directory. They do not reference unrelated system files, other credentials, or external endpoints beyond the stock data APIs.
Install Mechanism
No install spec and no external binary installs — instruction-only plus bundled Python scripts. This minimizes install-time risk; scripts run with the user's Python environment.
Credentials
The skill does not request environment variables, credentials, or config paths. It writes/reads a portfolio file at ~/.clawdbot/skills/a-stock-analysis/portfolio.json which is appropriate for a portfolio manager. No secrets or unrelated service keys are requested.
Persistence & Privilege
always is false and the skill does not attempt to modify other skills or system-wide agent settings. It persists only its own portfolio.json under the user's home directory, which is expected behavior for this functionality.
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install a-stock-analysis-bak - 安装完成后,直接呼叫该 Skill 的名称或使用
/a-stock-analysis-bak触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
A股实时行情与分时量能分析技能首发版本:
- 实现A股实时行情查询,支持沪深北交所全市场。
- 支持分时量能分布分析、主力资金动向和涨停封单判别。
- 提供股票持仓增删改查和盈亏分析功能。
- 采用新浪财经数据接口,支持批量获取,提高一致性与效率。
- 详细命令行用法和分时量能判读标准文档化。
元数据
常见问题
A Stock Analysis.Bak 是什么?
提供沪深北交所A股实时行情查询、分时成交量分析、主力资金动态判断及持仓盈亏管理功能。 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 201 次。
如何安装 A Stock Analysis.Bak?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install a-stock-analysis-bak」即可一键安装,无需额外配置。
A Stock Analysis.Bak 是免费的吗?
是的,A Stock Analysis.Bak 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
A Stock Analysis.Bak 支持哪些平台?
A Stock Analysis.Bak 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 A Stock Analysis.Bak?
由 litiao1224(@litiao1224)开发并维护,当前版本 v1.0.0。
推荐 Skills