stock_lhb_ggtj_sina
Retrieve statistical data for stocks appearing on China A-share market's Dragon Tiger List, showing institutional trading activity over specified periods.
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:283-293 (handler)The handler function decorated with @mcp.tool() implements the 'stock_lhb_ggtj_sina' tool. It fetches A-share dragon and tiger list (LHB) statistics data using akshare's ak.stock_lhb_ggtj_sina function wrapped in ak_cache for the specified number of days, limits the results, and returns as CSV.@mcp.tool( title="A股龙虎榜统计", description="获取中国A股市场(上证、深证)的龙虎榜个股上榜统计数据", ) 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()