northbound_shareholding_sh
Retrieve Shanghai Stock Connect northbound shareholding data for specific dates through Xueqiu MCP's stock market API.
Instructions
获取深港通北向数据
Args:
date: 日期,默认当天,格式:'2022/01/19'
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": "northbound_shareholding_sh"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| date | No |
Implementation Reference
- main.py:376-384 (handler)MCP tool handler for 'northbound_shareholding_sh'. Calls pysnowball's northbound_shareholding_sh with optional date parameter, processes the result using process_data helper, and returns it as dict.
@mcp.tool() def northbound_shareholding_sh(date: str = None) -> dict: """获取深港通北向数据 Args: date: 日期,默认当天,格式:'2022/01/19' """ result = ball.northbound_shareholding_sh(date) return process_data(result)