bonus
Retrieve dividend and financing data for Chinese stocks using stock codes, with pagination controls for managing large datasets.
Instructions
获取F10分红融资数据
Args:
stock_code: 股票代码
page: 第几页 默认1
size: 每页含有多少数据 默认10
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| stock_code | No | SZ000002 | |
| page | No | ||
| size | No |
Implementation Reference
- main.py:238-238 (registration)Registers the 'bonus' tool using the FastMCP @mcp.tool() decorator.@mcp.tool()
- main.py:239-248 (handler)The handler function for the 'bonus' tool. Fetches F10分红融资数据 (dividend financing data) using pysnowball.ball.bonus API, processes timestamps with process_data, and returns as dict.def bonus(stock_code: str="SZ000002", page: int = 1, size: int = 10) -> dict: """获取F10分红融资数据 Args: stock_code: 股票代码 page: 第几页 默认1 size: 每页含有多少数据 默认10 """ result = ball.bonus(stock_code, page=page, size=size) return process_data(result)
- main.py:239-239 (schema)Type schema for 'bonus' tool inputs (stock_code: str, page: int=1, size: int=10) and output (dict). Includes defaults and docstring description.def bonus(stock_code: str="SZ000002", page: int = 1, size: int = 10) -> dict: