quotec
Retrieve real-time stock market data for specific securities to analyze financial performance and track investment opportunities.
Instructions
获取某支股票的行情数据
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "quotec"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| stock_code | No | SZ000002 |
Implementation Reference
- main.py:64-69 (handler)The quotec tool handler function, decorated with @mcp.tool() for registration. It calls pysnowball's quotec method to fetch stock quote data and processes the result with process_data for timestamp conversion.
@mcp.tool() def quotec(stock_code: str="SZ000002") -> dict: """获取某支股票的行情数据""" result = ball.quotec(stock_code) return process_data(result)