capital_assort
Retrieve capital transaction distribution data for specific stocks to analyze trading patterns and investor behavior.
Instructions
获取资金成交分布数据
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| stock_code | No | SZ000002 |
Implementation Reference
- main.py:120-124 (handler)The MCP tool handler for 'capital_assort'. Registered via @mcp.tool() decorator. Takes stock_code parameter, fetches data using pysnowball.ball.capital_assort, processes timestamps with process_data, and returns as dict. The function signature provides input schema.@mcp.tool() def capital_assort(stock_code: str="SZ000002") -> dict: """获取资金成交分布数据""" result = ball.capital_assort(stock_code) return process_data(result)