get_fundamentals
Retrieve company fundamentals from SEC XBRL 10-K/10-Q filings—newest period first—including revenue, income, EPS, cash flow, debt, and cash by annual or quarterly periods.
Instructions
Company fundamentals from SEC XBRL filings (10-K/10-Q), newest period first.
metrics: any of revenue, gross_profit, operating_income, net_income, diluted_eps,
basic_eps, operating_cash_flow, capex, total_debt, cash, shares_diluted,
shares_outstanding (default: all). periods: "annual" or "quarterly". n: number of
periods (1-40). Each value carries the XBRL tag used, the period dates, the filing's
form, accession, filed date and URL. Missing values are null with a reason.
Source: SEC EDGAR XBRL companyfacts.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| n | No | ||
| ticker | Yes | ||
| metrics | No | ||
| periods | No | annual |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cik | Yes | ||
| name | Yes | ||
| as_of | Yes | ||
| notes | No | ||
| stale | No | ||
| source | Yes | ||
| ticker | Yes | ||
| values | Yes | ||
| metrics | Yes | ||
| periods | Yes | ||
| source_url | Yes | ||
| retrieved_at | Yes |