Fundamental report
get_fundamental_dataFetch a stock's Refinitiv fundamentals report as XML, covering key ratios, financial statements, and analyst estimates. Resolve the contract by symbol or con_id to get the data.
Instructions
Fetch a Refinitiv fundamentals report for a stock, as XML.
Deprecated by IBKR: reqFundamentalData was removed in TWS API 10.50. It still works on
IB Gateway stable (10.45); newer gateways may refuse it. Stocks only (sec_type STK).
Needs the Refinitiv (Reuters) fundamentals data subscription on the IBKR login.
Whitespace between XML tags is removed; long reports are cut at max_chars (default
50000, max 200000) with truncated=true, so prefer ReportSnapshot or ReportsFinSummary
over the large statement and ownership reports.
Errors: not_found (unknown stock, or IBKR has no such report for it, error
430), ambiguous_contract (give primary_exchange or con_id), ib_api_error 10358 (no
fundamentals subscription), invalid_request (not a stock), request_timeout (a newer
gateway may not answer at all). For key ratios without this report, use
subscribe_quotes with the fundamental_ratios generic tick.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| contract | Yes | The instrument. A con_id alone is unambiguous; otherwise give symbol and sec_type, plus expiry, strike and right for options. | |
| max_chars | No | Longest XML report to return, in characters (at most 200,000); a longer report is cut and truncated is true. | |
| report_type | Yes | ReportSnapshot: company overview, key ratios, forecast summary. ReportsFinSummary: per-period EPS, revenue, dividends. ReportsFinStatements: income statement, balance sheet, cash flow (large). ReportsOwnership: holders (large). RESC: analyst estimates. CalendarReport: company calendar (often unavailable). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| xml | Yes | The report as XML (whitespace between tags removed). Not well-formed when truncated is true. | |
| contract | Yes | The stock the report is about. | |
| truncated | No | True when the result was cut to the limit. | |
| report_type | Yes | The report type that was requested. | |
| total_chars | Yes | Length of the whole report before truncation. |