get_financial_statement
Retrieve balance, income, or cash flow statements for A-share stocks. Returns raw EastMoney fields, most recent periods first. Income and cash flow values are cumulative YTD.
Instructions
Fetch a full financial statement (all periods, all columns) from EastMoney via akshare.
statement selects which one (each is a separate EastMoney endpoint — one
fetch per call, so request only the statement you need):
"balance" 资产负债表 — point-in-time snapshot per report date.
"income" 利润表 — key fields OPERATE_INCOME, NETPROFIT, ...
"cash_flow" 现金流量表 — key fields NETCASH_OPERATE (operating cash flow), CONSTRUCT_LONG_ASSET (capex).
Returns raw EastMoney field names (English uppercase keys), rows ordered most-recent-first (newest period at index 0). Columns entirely empty across the returned periods are dropped.
IMPORTANT — for "income" and "cash_flow", quarterly values are cumulative YTD (year-to-date), not single-quarter:
Q1 (一季报) = 3 months
H1 (半年报) = 6 months
Q3 (三季报) = 9 months
FY (年报) = 12 months Inspect REPORT_DATE_NAME before comparing across periods. To get a single quarter, subtract the previous cumulative period (e.g. Q3_single = Q3 - H1). The balance sheet is a snapshot, so this does not apply to it.
Args: code: Stock code in baostock format, e.g. 'sh.600519'. statement: Which statement — "balance", "income", or "cash_flow". periods: How many most-recent report periods to return (default 8 ≈ 2 years of quarterly filings). Raise only when you need older periods — the full history is large.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | ||
| statement | Yes | ||
| periods | No |