get_dividend_data
Retrieve dividend details for a specific stock code and year using Baostock format. Query based on announcement or ex-dividend year to get structured dividend data.
Instructions
Fetches dividend information for a given stock code and year.
Args:
code: The stock code in Baostock format (e.g., 'sh.600000', 'sz.000001').
year: The year to query (e.g., '2023').
year_type: Type of year. Valid options (from Baostock):
'report': Announcement year (预案公告年份)
'operate': Ex-dividend year (除权除息年份)
Defaults to 'report'.
Returns:
A Markdown formatted string containing the dividend data table,
or an error message.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
code | Yes | ||
year | Yes | ||
year_type | No | report |
Input Schema (JSON Schema)
{
"properties": {
"code": {
"title": "Code",
"type": "string"
},
"year": {
"title": "Year",
"type": "string"
},
"year_type": {
"default": "report",
"title": "Year Type",
"type": "string"
}
},
"required": [
"code",
"year"
],
"title": "get_dividend_dataArguments",
"type": "object"
}