get_financial_indicators
Fetch quarterly financial indicators for A-share stocks, including profitability, growth, turnover, balance sheet, cash flow, and DuPont decomposition ratios.
Instructions
Fetch a quarterly financial report; report selects which statement.
baostock splits quarterly fundamentals across six statements, each with a distinct field set. All values are cumulative-from-year-start: quarter=1 is 3-month, 2 is H1 (6-month), 3 is 9-month, 4 is FY (12-month).
report:
'profit': profitability — roeAvg, npMargin, gpMargin, netProfit, epsTTM, MBRevenue, totalShare.
'operation': turnover ratios — NRTurnRatio, INVTurnRatio, CATurnRatio, AssetTurnRatio (and matching *Days).
'growth': YoY growth rates — YOYNI, YOYEPSBasic, YOYEquity, YOYAsset, YOYPNI.
'balance': balance-sheet ratios — currentRatio, quickRatio, liabilityToAsset, assetToEquity. liabilityToAsset is rederived as 1 - 1/assetToEquity to work around stale upstream values (falls back to the raw value only when assetToEquity is null or zero).
'cash_flow': cash-flow ratios — CFOToOR, CFOToNP, CFOToGr, CAToAsset.
'dupont': DuPont ROE decomposition — dupontROE, dupontAssetTurn, dupontNitogr, dupontTaxBurden, dupontEbittogr.
Args: code: Stock code, e.g. 'sh.600519'. report: Which statement to fetch (see above). year: 4-digit year, e.g. '2024'. quarter: 1, 2, 3, or 4.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | ||
| report | Yes | ||
| year | Yes | ||
| quarter | Yes |