cash_flow
Retrieve cash flow statement data for specific stocks from the Xueqiu MCP server to analyze financial liquidity and operational performance.
Instructions
获取现金流量表数据
Args:
stock_code: 股票代码
is_annals: 只获取年报,默认为1
count: 返回数据数量,默认5条
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| stock_code | No | SZ000002 | |
| is_annals | No | ||
| count | No |
Implementation Reference
- main.py:180-190 (handler)The handler function for the 'cash_flow' tool. It is decorated with @mcp.tool() for registration, fetches cash flow data from the pysnowball library (ball.cash_flow), processes the data using process_data helper, and returns it as a dict.@mcp.tool() def cash_flow(stock_code: str="SZ000002", is_annals: int = 1, count: int = 5) -> dict: """获取现金流量表数据 Args: stock_code: 股票代码 is_annals: 只获取年报,默认为1 count: 返回数据数量,默认5条 """ result = ball.cash_flow(symbol=stock_code, is_annals=is_annals, count=count) return process_data(result)