get_stock_basic_info
Retrieve essential details for Chinese A-share stocks, including code, name, industry, and listing date, using a specific stock code. Customize data output by selecting specific fields.
Instructions
Fetches basic information for a given Chinese A-share stock.
Args:
code: The stock code in Baostock format (e.g., 'sh.600000', 'sz.000001').
fields: Optional list to select specific columns from the available basic info
(e.g., ['code', 'code_name', 'industry', 'listingDate']).
If None or empty, returns all available basic info columns from Baostock.
Returns:
A Markdown formatted string containing the basic stock information table,
or an error message.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
code | Yes | ||
fields | No |
Input Schema (JSON Schema)
{
"properties": {
"code": {
"title": "Code",
"type": "string"
},
"fields": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"title": "Fields"
}
},
"required": [
"code"
],
"title": "get_stock_basic_infoArguments",
"type": "object"
}