fund_detail
Retrieve detailed fund information from Xueqiu's financial data by entering a fund code to access performance metrics and investment data.
Instructions
获取基金详细信息
Args:
fund_code: 基金代码
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"fund_code": "<fund_code>"
},
"name": "fund_detail"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fund_code | Yes |
Implementation Reference
- main.py:398-406 (handler)The handler function decorated with @mcp.tool(), which registers and implements the 'fund_detail' tool. It calls ball.fund_detail(fund_code) and processes the result using process_data.
@mcp.tool() def fund_detail(fund_code: str) -> dict: """获取基金详细信息 Args: fund_code: 基金代码 """ result = ball.fund_detail(fund_code) return process_data(result)