Financial Statements
get_financialsGet financial statements for a company: quarterly/annual profit/loss, balance sheet, cash flow, ratios. Specify section and periods; availability dates avoid look-ahead bias in backtests.
Instructions
Get financial statements for one company. Sections: quarterly (quarterly P&L, ~13 quarters), profit_loss (annual P&L), balance_sheet, cash_flow, ratios (all annual). Pass section for one statement with every period we hold; omit it to get all sections trimmed to the latest 5 periods each (use periods to widen, e.g. {"symbol":"TCS","section":"quarterly","periods":12}). Each section carries periods (oldest first), data {row: {period: value}}, pct_changes, row_order, and an availability array giving the point-in-time available_from date per period (the real result-declaration date where known, basis:\"reported\", otherwise a regulatory-lag estimate, basis:\"estimated\"). Use available_from for backtests to avoid look-ahead bias. NOTE: available_from reflects original declaration timing only; the values are the latest reported figures and may include later restatements. One symbol per call; for many companies call once per symbol (get_batch_quotes is prices only). ETFs, index funds and bonds have no financial statements.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| symbol | No | REQUIRED. The stock symbol, e.g. "RELIANCE" or "TCS". | |
| ticker | No | Alias for `symbol`. | |
| periods | No | Latest N periods per section (max 40). Default: all periods when a section is named, 5 per section when it is not. | |
| section | No | One of: quarterly, profit_loss, balance_sheet, cash_flow, ratios. `quarterly` is the quarterly P&L; the other four are annual. Omit for all sections. | |
| quarters | No | Alias for `periods`. | |
| identifier | No | Alias for `symbol`. |