Skip to main content
Glama
aahl

AkTools MCP Server

by aahl

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
NameRequiredDescriptionDefault
daysNo统计最近天数,仅支持: [5/10/30/60]5
limitNo返回数量(int,30-100)

Implementation Reference

  • 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()
  • 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股市场(上证、深证)的龙虎榜个股上榜统计数据", )
  • 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),

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/aahl/mcp-aktools'

If you have feedback or need assistance with the MCP directory API, please join our Discord server