stock_indicators_a
Retrieve key financial indicators for Chinese A-share market stocks (Shanghai, Shenzhen) to analyze company performance and make informed investment decisions.
Instructions
获取中国A股市场(上证、深证)的股票财务报告关键指标
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| symbol | Yes | 股票代码 |
Implementation Reference
- mcp_aktools/__init__.py:173-182 (handler)The handler function decorated with @mcp.tool, defining and registering the 'stock_indicators_a' tool. It retrieves cached financial abstract indicators for A-share stocks using akshare and returns the header plus the last 15 rows.@mcp.tool( title="A股关键指标", description="获取中国A股市场(上证、深证)的股票财务报告关键指标", ) def stock_indicators_a( symbol: str = field_symbol, ): dfs = ak_cache(ak.stock_financial_abstract_ths, symbol=symbol) keys = dfs.to_csv(index=False, float_format="%.3f").strip().split("\n") return "\n".join([keys[0], *keys[-15:]])