Skip to content

m.stocks.financials.ratios

Daily valuation, profitability, liquidity, and leverage ratios of US stocks.

Call it from a session m, made with dm.MassiveSession():

m.stocks.financials.ratios(symbols=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 per Symbol and Date

Dataset index

Arguments

A linked argument follows its rule under shared arguments on the dataset index.

Argument Description
symbols Stock tickers; leave it out for every ticker. dm.ALL is refused.
sort Any of Massive's field names, such as "market_cap". 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 {"price_to_earnings_lt": 15}. Keys: average_volume, average_volume_gt, average_volume_gte, average_volume_lt, average_volume_lte, cash, cash_gt, cash_gte, cash_lt, cash_lte, cik, cik_any_of, cik_gt, cik_gte, cik_lt, cik_lte, current, current_gt, current_gte, current_lt, current_lte, debt_to_equity, debt_to_equity_gt, debt_to_equity_gte, debt_to_equity_lt, debt_to_equity_lte, dividend_yield, dividend_yield_gt, dividend_yield_gte, dividend_yield_lt, dividend_yield_lte, earnings_per_share, earnings_per_share_gt, earnings_per_share_gte, earnings_per_share_lt, earnings_per_share_lte, enterprise_value, enterprise_value_gt, enterprise_value_gte, enterprise_value_lt, enterprise_value_lte, ev_to_ebitda, ev_to_ebitda_gt, ev_to_ebitda_gte, ev_to_ebitda_lt, ev_to_ebitda_lte, ev_to_sales, ev_to_sales_gt, ev_to_sales_gte, ev_to_sales_lt, ev_to_sales_lte, free_cash_flow, free_cash_flow_gt, free_cash_flow_gte, free_cash_flow_lt, free_cash_flow_lte, market_cap, market_cap_gt, market_cap_gte, market_cap_lt, market_cap_lte, price, price_gt, price_gte, price_lt, price_lte, price_to_book, price_to_book_gt, price_to_book_gte, price_to_book_lt, price_to_book_lte, price_to_cash_flow, price_to_cash_flow_gt, price_to_cash_flow_gte, price_to_cash_flow_lt, price_to_cash_flow_lte, price_to_earnings, price_to_earnings_gt, price_to_earnings_gte, price_to_earnings_lt, price_to_earnings_lte, price_to_free_cash_flow, price_to_free_cash_flow_gt, price_to_free_cash_flow_gte, price_to_free_cash_flow_lt, price_to_free_cash_flow_lte, price_to_sales, price_to_sales_gt, price_to_sales_gte, price_to_sales_lt, price_to_sales_lte, quick, quick_gt, quick_gte, quick_lt, quick_lte, return_on_assets, return_on_assets_gt, return_on_assets_gte, return_on_assets_lt, return_on_assets_lte, return_on_equity, return_on_equity_gt, return_on_equity_gte, return_on_equity_lt, return_on_equity_lte, ticker_gt, ticker_gte, ticker_lt, ticker_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 Ratios (REST)
Stocks Basic Not included
Stocks Starter Not included
Stocks Developer Not included
Stocks Advanced End-of-day
Financials & Ratios Expansion End-of-day
Stocks Business Not included
Financials & Ratios Expansion Business End-of-day

Columns

Column Type Description
Symbol String The row's instrument, as Massive's ticker. From REST ticker: "Stock ticker symbol for the company."
Price double Stock price used in ratio calculations, typically the closing price for the given date.
AverageVolume double Average trading volume over the last 30 trading days, providing context for liquidity.
Cash double Cash ratio, calculated as cash and cash equivalents divided by current liabilities, measuring the most liquid form of liquidity coverage.
Cik String Central Index Key (CIK) number assigned by the SEC to identify the company.
Date String Date for which the ratios are calculated, representing the trading date with available price data.
Current double Current ratio, calculated as total current assets divided by total current liabilities, measuring short-term liquidity.
DebtToEquity double Debt-to-equity ratio, calculated as total debt (current debt plus long-term debt) divided by total shareholders' equity, measuring financial leverage.
DividendYield double Dividend yield, calculated as annual dividends per share divided by stock price, measuring the income return on investment.
EarningsPerShare double Earnings per share, calculated as trailing twelve months (TTM) net income available to common shareholders divided by point-in-time shares outstanding as of the price date, assuming all shares of other share classes are converted to this share class. This is not weighted average basic or diluted shares outstanding, so this value will not match the reported basic or diluted EPS on the income statements endpoint.
EnterpriseValue double Enterprise value, calculated as market capitalization plus total debt minus cash and cash equivalents, representing total company value.
EvToEbitda double Enterprise value to EBITDA ratio, calculated as enterprise value divided by EBITDA, measuring company valuation relative to earnings before interest, taxes, depreciation, and amortization.
EvToSales double Enterprise value to sales ratio, calculated as enterprise value divided by revenue, measuring company valuation relative to sales.
FreeCashFlow double Free cash flow, calculated as operating cash flow minus capital expenditures (purchase of property, plant, and equipment).
MarketCap double Market capitalization, calculated as stock price multiplied by total shares outstanding.
PriceToBook double Price-to-book ratio, calculated as stock price divided by book value per share, comparing market value to book value.
PriceToCashFlow double Price-to-cash-flow ratio, calculated as stock price divided by operating cash flow per share. Only calculated when operating cash flow per share is positive.
PriceToEarnings double Price-to-earnings ratio, calculated as stock price divided by earnings per share. Only calculated when earnings per share is positive.
PriceToFreeCashFlow double Price-to-free-cash-flow ratio, calculated as stock price divided by free cash flow per share. Only calculated when free cash flow per share is positive.
PriceToSales double Price-to-sales ratio, calculated as stock price divided by revenue per share, measuring valuation relative to sales.
Quick double Quick ratio (acid-test ratio), calculated as (current assets minus inventories) divided by current liabilities, measuring immediate liquidity.
ReturnOnAssets double Return on assets ratio, calculated as net income divided by total assets, measuring how efficiently a company uses its assets to generate profit.
ReturnOnEquity double Return on equity ratio, calculated as net income divided by total shareholders' equity, measuring profitability relative to shareholders' equity.
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 ticker
Price price
AverageVolume average_volume
Cash cash
Cik cik
Date date
Current current
DebtToEquity debt_to_equity
DividendYield dividend_yield
EarningsPerShare earnings_per_share
EnterpriseValue enterprise_value
EvToEbitda ev_to_ebitda
EvToSales ev_to_sales
FreeCashFlow free_cash_flow
MarketCap market_cap
PriceToBook price_to_book
PriceToCashFlow price_to_cash_flow
PriceToEarnings price_to_earnings
PriceToFreeCashFlow price_to_free_cash_flow
PriceToSales price_to_sales
Quick quick
ReturnOnAssets return_on_assets
ReturnOnEquity return_on_equity
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.