m.stocks.financials.income_statements¶
Income statements of US public companies, one row per filer and reporting period.
Call it from a session m, made with dm.MassiveSession():
m.stocks.financials.income_statements(symbols=None, *, timeframe=None, start=None, end=None, sort=None, order=None, limit=None, filters=None, on_error=None)
- Methods:
fetch(),poll(interval) - Read from: REST
poll()by default:dm.PollMode.REPLACE, which holds only the latest poll's rows, one row perCik,PeriodEnd,TimeframeandSymbol
Arguments¶
A linked argument follows its rule under shared arguments on the dataset index.
| Argument | Description |
|---|---|
symbols |
Tickers whose filings to return; leave it out for every filing. dm.ALL is refused. |
timeframe |
dm.Timeframe.ANNUAL, QUARTERLY, or TRAILING_TWELVE_MONTHS; leave it out for all three. |
start |
The first period end date. |
end |
The last period end date. |
sort |
Any of Massive's field names, such as "fiscal_year". Fields: any REST field under Massive fields. |
order |
The direction of sort. |
limit |
The most rows to return, in total. A watchlist's fetch() caps every request instead. |
filters |
Further endpoint parameters, such as {"fiscal_year_gte": 2020}. Keys: cik, cik_any_of, cik_gt, cik_gte, cik_lt, cik_lte, filing_date, filing_date_gt, filing_date_gte, filing_date_lt, filing_date_lte, fiscal_quarter, fiscal_quarter_gt, fiscal_quarter_gte, fiscal_quarter_lt, fiscal_quarter_lte, fiscal_year, fiscal_year_gt, fiscal_year_gte, fiscal_year_lt, fiscal_year_lte. |
on_error |
What a bad symbol or row does in this call (dm.ErrorPolicy). None, the default, takes each cause from the session's MassiveConfig.on_error. |
Plans¶
How recent the data is on each of Massive's plans, and how far back its history goes, as Massive's pages state them.
| Plan | Income Statements (REST) |
|---|---|
| Stocks Basic | Not included |
| Stocks Starter | Not included |
| Stocks Developer | Not included |
| Stocks Advanced | End-of-day, All history |
| Financials & Ratios Expansion | End-of-day, All history |
| Stocks Business | Not included |
| Financials & Ratios Expansion Business | End-of-day, All history |
Columns¶
| Column | Type | Description |
|---|---|---|
Symbol |
String | The ticker the request named that the row lists in Tickers: a row that lists several of the named tickers appears once for each, so an article about AAPL and MSFT read for both is listed under each. A row that lists none of the named tickers is left out, as an unrequested_symbols problem. Null when the call named no ticker. |
BasicEarningsPerShare |
double | Earnings per share calculated using the weighted average number of basic shares outstanding. For TTM records, recalculated as TTM net income divided by average basic shares outstanding over the four quarters. |
BasicSharesOutstanding |
double | Weighted average number of common shares outstanding during the period, used in basic EPS calculation. For TTM records, represents the average over the four most recent quarters. |
Cik |
String | The company's Central Index Key (CIK), a unique identifier assigned by the U.S. Securities and Exchange Commission (SEC). You can look up a company’s CIK using the SEC CIK Lookup tool (https://www.sec.gov/search-filings/cik-lookup). |
ConsolidatedNetIncomeLoss |
double | Total net income or loss for the consolidated entity including all subsidiaries. |
CostOfRevenue |
double | Direct costs attributable to the production of goods or services sold, also known as cost of goods sold (COGS). |
DepreciationDepletionAmortization |
double | Non-cash expenses representing the allocation of asset costs over their useful lives. |
DilutedEarningsPerShare |
double | Earnings per share calculated using diluted shares outstanding, including the effect of potentially dilutive securities. For TTM records, recalculated as TTM net income divided by average diluted shares outstanding over the four quarters. |
DilutedSharesOutstanding |
double | Weighted average number of shares outstanding including the dilutive effect of stock options, warrants, and convertible securities. For TTM records, represents the average over the four most recent quarters. |
DiscontinuedOperations |
double | After-tax results from business segments that have been or will be disposed of. |
Ebitda |
double | Earnings before interest, taxes, depreciation, and amortization, a measure of operating performance. |
EquityInAffiliates |
double | The company's share of income or losses from equity method investments in affiliated companies. |
ExtraordinaryItems |
double | Unusual and infrequent gains or losses that are both unusual in nature and infrequent in occurrence. |
FilingDate |
String | The date of the most recent SEC filing that included this period's data. This is not necessarily the date this period was originally filed. Because SEC filings restate comparative data for prior periods, multiple records can share the same filing_date. For example, an annual 10-K reports three years of results, and a 10-Q includes prior period comparatives. To find the original filing date for a specific 10-K or 10-Q, use the SEC EDGAR filings index endpoint (/stocks/filings/vX/index). |
FiscalQuarter |
long | The fiscal quarter number (1, 2, 3, or 4) for the reporting period. |
FiscalYear |
long | The fiscal year for the reporting period. |
GrossProfit |
double | Revenue minus cost of revenue, representing profit before operating expenses. |
IncomeBeforeIncomeTaxes |
double | Pre-tax income calculated as operating income plus total other income/expense. |
IncomeTaxes |
double | Income tax expense or benefit for the period. |
InterestExpense |
double | Cost of borrowed funds, including interest on debt and other financing obligations. |
InterestIncome |
double | Income earned from interest-bearing investments and cash equivalents. |
NetIncomeLossAttributableCommonShareholders |
double | Net income or loss available to common shareholders after preferred dividends and noncontrolling interests. |
NoncontrollingInterest |
double | The portion of net income attributable to minority shareholders in consolidated subsidiaries. |
OperatingIncome |
double | Income from operations calculated as gross profit minus total operating expenses, excluding non-operating items. |
OtherIncomeExpense |
double | Non-operating income and expenses not related to the company's core business operations. |
OtherOperatingExpenses |
double | Operating expenses not classified in the main expense categories. |
PeriodEnd |
String | The last date of the reporting period (formatted as YYYY-MM-DD). |
PreferredStockDividendsDeclared |
double | Dividends declared on preferred stock during the period. |
ResearchDevelopment |
double | Expenses incurred for research and development activities to create new products or improve existing ones. |
Revenue |
double | Total revenue or net sales for the period, representing the company's gross income from operations. |
SellingGeneralAdministrative |
double | Expenses related to selling products and general administrative costs not directly tied to production. |
Tickers |
String[] | A list of ticker symbols under which the company is listed. Multiple symbols may indicate different share classes for the same company. |
Timeframe |
String | The reporting period type. Possible values include: quarterly, annual, trailing_twelve_months. |
TotalOperatingExpenses |
double | Sum of all operating expenses including cost of revenue, SG&A, R&D, depreciation, and other operating expenses. |
TotalOtherIncomeExpense |
double | Net total of all non-operating income and expenses including interest income, interest expense, and other items. |
TimestampInsert |
Instant | When the library received the row, by the local clock. Rows that arrive together share it. It isn't Massive's time, and later rows can carry earlier times. In a poll() table, it's the time of the poll the row's values came from. |
Massive fields
The Massive field behind each column, by source. An empty cell means the source doesn't carry the column, or the library computes it.
| Column | REST field |
|---|---|
Symbol |
|
BasicEarningsPerShare |
basic_earnings_per_share |
BasicSharesOutstanding |
basic_shares_outstanding |
Cik |
cik |
ConsolidatedNetIncomeLoss |
consolidated_net_income_loss |
CostOfRevenue |
cost_of_revenue |
DepreciationDepletionAmortization |
depreciation_depletion_amortization |
DilutedEarningsPerShare |
diluted_earnings_per_share |
DilutedSharesOutstanding |
diluted_shares_outstanding |
DiscontinuedOperations |
discontinued_operations |
Ebitda |
ebitda |
EquityInAffiliates |
equity_in_affiliates |
ExtraordinaryItems |
extraordinary_items |
FilingDate |
filing_date |
FiscalQuarter |
fiscal_quarter |
FiscalYear |
fiscal_year |
GrossProfit |
gross_profit |
IncomeBeforeIncomeTaxes |
income_before_income_taxes |
IncomeTaxes |
income_taxes |
InterestExpense |
interest_expense |
InterestIncome |
interest_income |
NetIncomeLossAttributableCommonShareholders |
net_income_loss_attributable_common_shareholders |
NoncontrollingInterest |
noncontrolling_interest |
OperatingIncome |
operating_income |
OtherIncomeExpense |
other_income_expense |
OtherOperatingExpenses |
other_operating_expenses |
PeriodEnd |
period_end |
PreferredStockDividendsDeclared |
preferred_stock_dividends_declared |
ResearchDevelopment |
research_development |
Revenue |
revenue |
SellingGeneralAdministrative |
selling_general_administrative |
Tickers |
tickers |
Timeframe |
timeframe |
TotalOperatingExpenses |
total_operating_expenses |
TotalOtherIncomeExpense |
total_other_income_expense |
TimestampInsert |
Massive's documentation¶
The plan tables and most column descriptions are Massive's, from its documentation as fetched on 2026-12-01, with a few corrected where Massive's are wrong. The library writes its own descriptions of the columns it names or computes, such as Symbol and TimestampInsert.