← Back to Skills Marketplace
litiao1224

A Stock Analysis Conflict

by litiao1224 · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ✓ Security Clean
215
Downloads
0
Stars
0
Active Installs
1
Versions
Install in OpenClaw
/install a-stock-analysis-conflict
Description
提供A股实时行情、分时量能分布、主力资金动向分析及持仓盈亏管理,支持沪深北交所股票。
README (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个交易日)
Usage Guidance
This skill appears to do what it says: it queries Sina finance endpoints (hq.sinajs.cn and quotes.sina.cn) over HTTPS, analyzes minute data, and stores portfolio state at ~/.clawdbot/skills/a-stock-analysis/portfolio.json. Before installing, consider: (1) network access — the scripts will make outbound requests to Sina; block or sandbox if you don't want that traffic; (2) local file write — back up any existing ~/.clawdbot/skills/a-stock-analysis/portfolio.json to avoid accidental overwrite; (3) the SKILL.md mentions Eastmoney but the code uses Sina only (a non‑security documentation mismatch); (4) if you need stricter auditing, review the full analyze.py (the truncated part in the package should be inspected) and run the scripts in a controlled environment. No credentials are requested and there are no remote installs, so the risk surface is limited.
Capability Analysis
Type: OpenClaw Skill Name: a-stock-analysis-conflict Version: 1.0.0 The skill bundle provides legitimate tools for A-share stock market analysis and portfolio management using public Sina Finance APIs. The scripts (analyze.py and portfolio.py) use standard libraries to fetch market data and manage a local JSON database in the user's home directory, with no evidence of data exfiltration, malicious execution, or prompt injection.
Capability Assessment
Purpose & Capability
Overall coherent: the name/description promise realtime A‑share quotes, minute volume distribution, main‑force signals, and portfolio management, and the included scripts implement those features. Minor mismatch: SKILL.md mentions 东方财富 (Eastmoney) as a data source, but the code calls only Sina endpoints (hq.sinajs.cn and quotes.sina.cn). This is likely an editorial inconsistency rather than malicious.
Instruction Scope
SKILL.md instructs the agent to run the local Python scripts and the scripts only perform network requests to Sina, parse results, format output, and read/write a single portfolio.json under the skill's config path (~/.clawdbot/skills/a-stock-analysis/portfolio.json). There are no instructions to read unrelated system files, access other credentials, or transmit data to unexpected endpoints.
Install Mechanism
Instruction‑only skill with bundled Python scripts; no install spec and no external downloads. Scripts depend only on the Python standard library. This is low risk from an install perspective.
Credentials
The skill requires no environment variables, no credentials, and no config paths beyond its own portfolio file under the user's home directory. The requested access is proportionate to portfolio storage and network retrieval of public market data.
Persistence & Privilege
always is false and the skill does not request elevated or system‑wide privileges. It writes only to its own portfolio.json path under the user's home directory; this is appropriate for a portfolio manager.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install a-stock-analysis-conflict
  3. After installation, invoke the skill by name or use /a-stock-analysis-conflict
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.0
- Initial release of A股实时行情与分时量能分析工具 - Retrieves real-time A股 stock prices, volume, and provides minute-level volume distribution analysis - Supports detection of main fund movements and trading signals (抢筹/出货/封单) - Includes portfolio management: add, update, remove, show, and analyze holdings with profit/loss calculation - Uses Sina Finance API for consistent and efficient data access - CLI scripts provided for querying single/multiple stocks, outputting JSON, and analyzing portfolio
Metadata
Slug a-stock-analysis-conflict
Version 1.0.0
License MIT-0
All-time Installs 1
Active Installs 0
Total Versions 1
Frequently Asked Questions

What is A Stock Analysis Conflict?

提供A股实时行情、分时量能分布、主力资金动向分析及持仓盈亏管理,支持沪深北交所股票。 It is an AI Agent Skill for Claude Code / OpenClaw, with 215 downloads so far.

How do I install A Stock Analysis Conflict?

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

Is A Stock Analysis Conflict free?

Yes, A Stock Analysis Conflict is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does A Stock Analysis Conflict support?

A Stock Analysis Conflict is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created A Stock Analysis Conflict?

It is built and maintained by litiao1224 (@litiao1224); the current version is v1.0.0.

💬 Comments