yfinance_get_stock_financials
Retrieve a stock's income statement, balance sheet, or cash flow statement by ticker, with quarterly or annual periods and optional field filtering.
Instructions
Get financial statements for a stock (income statement, balance sheet, or cash flow statement).
Args: ticker: Stock ticker symbol (e.g., 'AAPL', 'MSFT', 'GOOGL') statement_type: Type of financial statement - 'income', 'balance', or 'cashflow' (default: 'income') period: Period type - 'quarterly' for quarterly reports, 'annual' for yearly reports (default: 'quarterly') limit: Maximum number of periods to return (default: 4) fields: List of specific line items to include. If None, returns all fields (default: None) response_format: Output format - 'json' or 'markdown' (default: 'markdown')
Returns: Formatted string containing the requested financial statement organized by date. Returns quarterly data by default (most recent 4 quarters). Use period='annual' to get annual/yearly financial statements instead. When fields is specified, only those line items are included.
Example: yfinance_get_stock_financials("AAPL", "income", "json") yfinance_get_stock_financials("AAPL", "income", period="annual", limit=3) # Last 3 years yfinance_get_stock_financials("AAPL", "income", limit=2, fields=["Total Revenue", "Net Income"])
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"ticker": "<ticker>"
},
"name": "yfinance_get_stock_financials"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | ||
| fields | No | ||
| period | No | quarterly | |
| ticker | Yes | ||
| statement_type | No | income | |
| response_format | No | markdown |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |