A股分时量能分析

提供A股实时行情、分时成交量分布及主力资金动向分析,支持持仓管理和盈亏监控。

MIT-0 · Free to use, modify, and redistribute. No attribution required.
63 · 9.5k · 93 current installs · 100 all-time installs
MIT-0
Security Scan
VirusTotalVirusTotal
Benign
View report →
OpenClawOpenClaw
Benign
high confidence
Purpose & Capability
Name/intent (A股分时量能分析) matches the included scripts and SKILL.md. The code fetches real‑time quotes and minute K‑line data and performs volume distribution and signal analysis as described. Minor note: SKILL.md mentions 东方财富 and 新浪, but the scripts use Sina endpoints (hq.sinajs.cn and quotes.sina.cn); this is likely an implementation detail rather than a functional mismatch.
Instruction Scope
SKILL.md only instructs running the included Python scripts and describes expected CLI usage and outputs. The instructions do not request unrelated files, extra credentials, or external endpoints beyond the finance APIs. The skill explicitly documents the portfolio file path (~/.clawdbot/skills/a-stock-analysis/portfolio.json) which the portfolio script reads/writes.
Install Mechanism
No install spec is provided (instruction-only with code files). There is no network install or archive extraction; risk from install mechanism is minimal. The scripts require Python 3.10+ but list no external dependencies.
Credentials
The skill declares no environment variables, credentials, or special config paths beyond its own portfolio file in the user's home directory. It performs outbound HTTP(S) calls only to Sina finance endpoints, which is proportional to its stated purpose.
Persistence & Privilege
always is false and the skill does not request persistent platform privileges. It writes a portfolio JSON under ~/.clawdbot/skills/a-stock-analysis/, which is reasonable for a local portfolio feature and scoped to the skill's directory.
Assessment
This skill appears coherent and limited to fetching A‑share data from Sina and storing a local portfolio file. Things to consider before installing: (1) the scripts make outbound HTTPS requests to hq.sinajs.cn and quotes.sina.cn — ensure you are comfortable with that network access; (2) the portfolio is stored at ~/.clawdbot/skills/a-stock-analysis/portfolio.json (local, unencrypted) — don't store secrets there; (3) SKILL.md mentions 东方财富 but the code uses Sina — functionally OK but you may want to confirm data source expectations; (4) if you will run it in an automated agent, consider running in a sandboxed environment since it executes Python code and performs network I/O. Otherwise the skill is internally consistent and doesn't request unnecessary credentials or system access.

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

Current versionv1.0.0
Download zip
latestvk97c33xzxn0r6ceb7kn4x4bcyx800q6c

License

MIT-0
Free to use, modify, and redistribute. No attribution required.

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个交易日)

Files

3 total
Select a file
Select a file to preview.

Comments

Loading comments…