get_dividend_data
Fetch a stock's annual dividends: total cash per share and each payout's details for a specified year, handling multiple distributions and non-cash dividends.
Instructions
Fetch a year's dividends: annual cash total plus every payout's detail.
A year with several distributions has one entry per payout in payouts
(full detail). annual_cash_per_share_pretax is their summed
dividCashPsBeforeTax — the yearly total, so callers needn't add across
rows. Within a single payout, semicolon-separated multi-values in the
cash-dividend fields are already summed by the client.
annual_cash_per_share_pretax is None when the year had distributions but no cash (pure stock dividend / capital reserve conversion); read each payout's dividStocksPs / dividReserveToStockPs for those.
Args: code: Stock code. year: 4-digit year, e.g. '2023'. year_type: 'report' (announcement year) or 'operate' (ex-dividend year).
Returns: {code, year, annual_cash_per_share_pretax, payout_count, payouts}.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | ||
| year | Yes | ||
| year_type | No | report |