返回顶部
a

a-share-analysisA股分析工具

A股全面分析工具,支持实时行情、技术分析、基本面分析、情绪分析,生成美观的Markdown分析报告。Use when user asks for: A股股票分析、市场行情查询、技术指标分析、财务数据获取、投资建议、龙虎榜数据、北向资金流向、综合投资报告等A股相关分析需求。

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 1.0.0
安全检测
已通过
303
下载量
免费
免费
0
收藏
概述
安装方式
版本历史

a-share-analysis

A股分析技能

功能概述

本技能提供全方位的A股分析能力,包括:

  • - 📊 实时行情 - 指数、个股实时价格、涨跌幅、成交量
  • 🔧 技术分析 - MA均线、MACD、RSI、成交量分析、趋势判断
  • 📉 基本面分析 - 财务报表、估值指标、业绩分析
  • 💡 情绪分析 - 北向资金、市场情绪、龙虎榜
  • 📝 综合报告 - 美观的Markdown格式分析报告

快速开始

基本使用流程

  1. 1. 收集数据 - 使用 fetchrealtimedata.py 获取实时行情
  2. 技术分析 - 使用 fetchtechnicalindicators.py 分析技术指标
  3. 基本面分析 - 使用 fetchfundamentaldata.py 获取财务数据
  4. 情绪分析 - 使用 fetchsentimentdata.py 分析市场情绪
  5. 生成报告 - 使用 generate_report.py 生成美观的分析报告

示例:分析贵州茅台

python

1. 获取实时行情


from scripts.fetchrealtimedata import AShareRealTimeFetcher
fetcher = AShareRealTimeFetcher()
data = fetcher.fetchstockdata(600519)

2. 技术分析

from scripts.fetchtechnicalindicators import AShareTechnicalAnalyzer analyzer = AShareTechnicalAnalyzer() technical = analyzer.analyzetechnicalindicators(0.600519)

3. 基本面分析

from scripts.fetchfundamentaldata import AShareFundamentalFetcher fund_fetcher = AShareFundamentalFetcher() fundamental = fundfetcher.fetchfinancial_report(600519)

4. 生成报告

from scripts.generate_report import AShareReportGenerator generator = AShareReportGenerator() report = generator.generatemarkdownreport({ stocks: { 600519: { name: 贵州茅台, data, technical: technical, fundamental: fundamental } } }) print(report)

主要功能

1. 实时行情查询

获取指数行情

python from scripts.fetchrealtimedata import AShareRealTimeFetcher

fetcher = AShareRealTimeFetcher()

获取单个指数

shindex = fetcher.fetchindex_data(sh000001) # 上证指数 szindex = fetcher.fetchindex_data(sz399001) # 深证成指

批量获取指数

indices = fetcher.fetchmultipleindices([ sh000001, # 上证指数 sz399001, # 深证成指 sz399006, # 创业板指 sz399005, # 科创50 ])

获取个股行情

python

获取单个股票

stockdata = fetcher.fetchstock_data(600519) # 贵州茅台

批量获取股票

stocksdata = fetcher.fetchmultiple_stocks([ 600519, # 贵州茅台 000858, # 五粮液 300750, # 宁德时代 ])

返回数据结构

python { code: 600519, name: 贵州茅台, price: 1800.50, # 当前价格 change: 8.50, # 涨跌额 change_percent: 0.47, # 涨跌幅 (%) volume: 12.5万, # 成交量 amount: 22.5亿, # 成交额 high: 1810.00, # 最高价 low: 1790.00, # 最低价 open: 1792.00, # 开盘价 pre_close: 1792.00, # 昨收价 time: 2026-02-27 14:30:00 # 更新时间 }

2. 技术指标分析

均线分析

python from scripts.fetchtechnicalindicators import AShareTechnicalAnalyzer

analyzer = AShareTechnicalAnalyzer()

获取技术指标

technical = analyzer.analyzetechnicalindicators(0.600519)

返回数据结构

python { code: 0.600519, name: 贵州茅台, current_price: 1800.50, ma: { 5: 1795.23, # MA5 10: 1788.45, # MA10 20: 1775.67, # MA20 (中期趋势) 60: 1750.89 # MA60 (长期趋势) }, macd: { dif: 5.23, # DIF dea: 3.45, # DEA macd: 3.56, # MACD柱 signal: bullish # 看多/看空信号 }, rsi: 65.32, # RSI值 volume_ratio: 1.85, # 成交量比 trend: bullish, # 趋势: bullish/bearish/neutral support: 1780.00, # 支撑位 resistance: 1830.00 # 阻力位 }

技术信号解读

均线排列:

  • - MA5 > MA10 > MA20 > MA60: 多头排列 (强势)
  • MA5 < MA10 < MA20 < MA60: 空头排列 (弱势)
  • 其他: 震荡整理

MACD信号:

  • - bullish: DIF > DEA 且金叉,看多信号
  • bearish: DIF < DEA 且死叉,看空信号

RSI信号:

  • - RSI > 70: 超买区域,警惕回调
  • RSI < 30: 超卖区域,可能反弹
  • 30-70: 正常区间

3. 基本面分析

财务数据查询

python from scripts.fetchfundamentaldata import AShareFundamentalFetcher

fund_fetcher = AShareFundamentalFetcher()

获取财务报表

financial = fundfetcher.fetchfinancial_report(600519, 20231231)

返回数据结构

python { code: 600519, name: 贵州茅台, report_date: 20231231, total_revenue: 1234567890, # 营业总收入 operating_revenue: 1234567890, # 营业收入 net_profit: 617283945, # 净利润 total_profit: 617283945, # 利润总额 totalrevenuegrowth: 12.34, # 营收同比增长 netprofitgrowth: 15.67, # 净利润同比增长 roe: 32.56, # ROE (%) debttoasset: 20.15, # 资产负债率 (%) gross_margin: 91.23, # 毛利率 (%) net_margin: 50.00, # 净利率 (%) returnonasset: 25.67, # ROA (%) current_ratio: 3.45, # 流动比率 quick_ratio: 2.34, # 速动比率 psr: 4.56, # 市销率 pe_ttm: 28.56, # 市盈率TTM pb: 8.23, # 市净率 market_cap: 2256789000000, # 总市值 circulatingmarketcap: 2256789000000 # 流通市值 }

估值指标计算

python

计算估值指标(需要传入当前股价)

valuation = fundfetcher.calculatevaluation_metrics(600519, 1800.50)

返回数据结构

python { code: 600519, name: 贵州茅台, current_price: 1800.50, market_cap: 2256789000000, pe: 28.56, # PE = 净利润 / 股价 pb: 8.23, # PB = 市值 / 总资产 ps: 4.56, # PS = 市值 / 营收 roe: 32.

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 a-share-analysis-1776176415 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 a-share-analysis-1776176415 技能

通过命令行安装

skillhub install a-share-analysis-1776176415

下载

⬇ 下载 a-share-analysis v1.0.0(免费)

文件大小: 131.67 KB | 发布时间: 2026-4-15 10:34

v1.0.0 最新 2026-4-15 10:34
- Initial release of the A股全面分析工具 (A-Share Analysis Tool).
- Provides real-time market data, technical indicators, fundamental analysis, and sentiment analysis for A-shares.
- Generates visually appealing Markdown format analysis reports.
- Supports index and stock price queries, technical signal interpretation (MA, MACD, RSI), and comprehensive investment advice.
- Includes scripts and examples for data fetching, analysis, and report generation.
- Suitable for users seeking well-rounded A股股票分析, market overview, financial data, sentiment tracking, and investment suggestions.

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部