stock_lhb_ggtj_sina
Retrieve A-share market dragon-tiger board individual stock statistics to analyze institutional and large investor trading activity patterns in Chinese stock markets.
Instructions
获取中国A股市场(上证、深证)的龙虎榜个股上榜统计数据
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| days | No | 统计最近天数,仅支持: [5/10/30/60] | 5 |
| limit | No | 返回数量(int,30-100) |
Implementation Reference
- mcp_aktools/__init__.py:287-293 (handler)The main handler function that implements the core logic of the 'stock_lhb_ggtj_sina' tool. It fetches dragon and tiger list statistics data using akshare via caching, applies limit, and formats as CSV.def stock_lhb_ggtj_sina( days: str = Field("5", description="统计最近天数,仅支持: [5/10/30/60]"), limit: int = Field(50, description="返回数量(int,30-100)", strict=False), ): dfs = ak_cache(ak.stock_lhb_ggtj_sina, symbol=days, ttl=3600) dfs = dfs.head(int(limit)) return dfs.to_csv(index=False, float_format="%.2f").strip()
- mcp_aktools/__init__.py:283-286 (registration)Registers the 'stock_lhb_ggtj_sina' tool with FastMCP using the @mcp.tool decorator, including metadata like title and description.@mcp.tool( title="A股龙虎榜统计", description="获取中国A股市场(上证、深证)的龙虎榜个股上榜统计数据", )
- mcp_aktools/__init__.py:288-289 (schema)Pydantic Field definitions for the tool's input parameters: 'days' (recent days for statistics) and 'limit' (max rows to return).days: str = Field("5", description="统计最近天数,仅支持: [5/10/30/60]"), limit: int = Field(50, description="返回数量(int,30-100)", strict=False),