← 返回
未分类

AkShare Analysis

Analyze Hong Kong (5-digit) and A-share (6-digit) stocks across six dimensions to generate BUY/HOLD/SELL signals with confidence scores using akshare data.
使用 akshare 数据,从六个维度分析港股(5 位)和 A 股(6 位)股票,生成买入/持有/卖出信号及置信度评分。
coxlong coxlong 来源
未分类 clawhub v1.1.2 1 版本 99872.4 Key: 无需
★ 0
Stars
📥 783
下载
💾 1
安装
1
版本
#latest

概述

AKShare Stock Analysis

Analyze Hong Kong and A-share stocks with 6-dimension scoring using akshare as the data source. Works reliably on servers where Yahoo Finance is rate-limited.

Ticker Format

MarketFormatExample
-------------------------
Hong Kong5-digit00700 (Tencent), 09988 (Alibaba)
A-Share6-digit600519 (Moutai), 000858 (Wuliangye)

Quick Commands

# Single stock analysis
uv run {baseDir}/scripts/analyze.py 00700

# Multiple stocks
uv run {baseDir}/scripts/analyze.py 00700 09988 600519

# JSON output
uv run {baseDir}/scripts/analyze.py 00700 --output json

# Verbose (show per-dimension scores)
uv run {baseDir}/scripts/analyze.py 00700 --verbose

# Generate HTML report
uv run {baseDir}/scripts/analyze.py 00700 --report
uv run {baseDir}/scripts/render_report.py /data/stock-reports/00700/20260329_030822

# Search stock news (supports multiple keywords)
uv run {baseDir}/scripts/news.py 00700 腾讯 港股
uv run {baseDir}/scripts/news.py 600519 茅台 A股 --json

HTML Report Generation

Four-step workflow for generating comprehensive reports:

Step 1: Analyze and generate report directory

uv run {baseDir}/scripts/analyze.py 00700 --report
# Creates: /data/stock-reports/00700/20260329_030822/
#   ├── chart_data.json  (K线+MA+布林带+RSI+MACD+成交量)
#   └── data.json        (structured analysis data)

Step 2: Search news

# Search by ticker, name, and market keywords
uv run {baseDir}/scripts/news.py 00700 腾讯 港股
uv run {baseDir}/scripts/news.py 600519 茅台 A股

# For HK stocks, use: ticker + name + "港股"
# For A-shares, use: ticker + name + "A股"

Step 3: Generate AI analysis (manual)

Based on the news from Step 2 and technical data from Step 1, create ai_analysis.md in the report directory:

---
generated_at: 2026-03-29T20:30:00
---

## 市场情绪
... (summarize key news sentiment)

## 技术面解读
... (combine news + technical indicators from data.json)

## 关键事件影响
... (major news events and their impact)

## 综合展望
... (overall outlook combining fundamentals + technicals + news)

## 风险提示
... (key risks identified from news and technicals)

Step 4: Render HTML report

uv run {baseDir}/scripts/render_report.py /data/stock-reports/00700/20260329_030822
# Generates: index.html (self-contained with embedded charts + AI analysis)

The HTML report includes: signal badge, dimension scores with visual bars, financial metrics, analyst forecasts (HK only), technical charts, and optional AI analysis section.

Analysis Dimensions

DimensionWeightHKA-ShareData Source
-------------------:--::-------:-------------
Fundamentals25%ROE, net margin, profit growth
Analyst20%Target prices, ratings
Momentum20%RSI(14), 52-week position
Valuation15%⚠️P/E, P/B
Trend10%MA5/MA20 crossover, 20d change
Volume10%5d vs 60d average volume

Signal Logic

  • BUY: weighted score > 0.33
  • SELL: weighted score < -0.33
  • HOLD: otherwise
  • Confidence = abs(score) × 100%

Limitations

  • A-shares: no analyst forecast data (akshare doesn't provide per-stock analyst ratings for A-shares)
  • A-shares: P/E and P/B may be unavailable depending on market hours
  • Data is delayed (not real-time intraday)

Disclaimer

⚠️ NOT FINANCIAL ADVICE. For informational purposes only.

版本历史

共 1 个版本

  • v1.1.2 当前
    2026-05-03 03:55 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

data-analysis

AdMapix

fly0pants
AdMapix 原始数据层,提供广告创意、应用、排名、下载/收入及市场元数据。返回 AdMapix API 的结构化 JSON;调用方...
★ 297 📥 141,009
data-analysis

Data Analysis

ivangdavila
{"answer":"数据分析与可视化。查询数据库、生成报告、自动化电子表格,将原始数据转化为清晰可行的见解。适用于:(1) 您……"}
★ 210 📥 68,801
data-analysis

Tavily 搜索

jacky1n7
通过 Tavily API 进行网页搜索(Brave 替代方案)。当用户要求搜索网页、查找来源或链接,且 Brave 网页搜索不可用时使用。
★ 273 📥 100,428