AI Agent Hub
Back to skills
A-Share Fundamental Indicator Analysis icon

A-Share Fundamental Indicator Analysis

Professional Updated 2026.08.30

Paste the following prompt into your AI chat to install this skill:

Please follow https://skillhub.cn/install/skillhub.md and install @org-rwhv0nty/ad-fundamental-analysis.

About this skill

Problem

Fundamental analysis for A-shares often breaks down when metrics are computed with inconsistent periods: ROE, operating cash flow, and PEG can mix single-quarter, cumulative, and TTM values, or accidentally use announcement dates from the future when backfilling trading days. This skill turns that calculation into a reproducible script that covers 90 indicators across 9 categories, including profitability, growth, efficiency, earnings quality, safety, governance, valuation, shareholders, and size.

How it works

The skill runs scripts/run_fundamental_analysis.py through Bash and selects an indicator set with a category argument such as profitability, growth, efficiency, valuation, or all. Its core logic handles several engineering details:

  • Quarterly fundamentals: uses consolidated statements and matches REPORTING_PERIOD for YoY, QoQ, TTM, and single-quarter calculations.
  • Safe arithmetic: division uses safe_div to return NaN when the denominator is 0 or NaN; change indicators use _safe_diff to require a 75–110 day gap between adjacent reporting periods.
  • Daily indicators: valuation, shareholder, and size metrics are generated from trading calendars, closing prices, equity structure, dividends, holder counts, and top-holder data, with point-in-time filling to avoid lookahead bias.
  • Data conventions: total shares are converted from AmazingData’s 10,000-share unit to market value; only consolidated statements with STATEMENT_TYPE='1' are used, and the latest record is selected for duplicate reporting periods.

Scope and limits

This is best for generating structured indicator series from financial and market data, not for narrative event study or qualitative analysis. It assumes a configured Python environment, AmazingData dependencies, and authentication variables. Some metrics require dividend, holder-count, and top-holder APIs, and missing fields may produce NaN. AmazingData enforces single active login per account, so concurrent runs may conflict.

Use Cases

  • Generate quarterly and daily profitability, growth, and valuation factor series before building a multi-factor screening model.
  • Backtest historical strategies by filling valuation, dividend yield, and shareholder-count fields point-in-time by announcement date.
  • Prepare stock reports by calculating ROE, PEG, and free-cash-flow-to-market-cap from financial statements and equity structure.
  • Diagnose metric changes by comparing TTM, single-quarter, YoY, and QoQ growth rates.

Best For

  • Quant researchers: need reproducible A-share fundamental factor series for screening and backtesting.
  • Equity analysts: need valuation, shareholder, and earnings-quality metrics from statements, equity structure, and dividends.
  • Financial data engineers: need consistent TTM, single-quarter, YoY/QoQ, and announcement-date filling logic.
  • Backtesting engineers: need historical daily fundamental fields without lookahead bias.