Dataset index¶
This index lists every dataset by asset class or subject, with the query methods, shared arguments, and column types. Each dataset links its own page, with its call, arguments, plans, and columns. dm.datasets() lists every dataset as a table.
Query methods¶
Create a session with m = dm.MassiveSession(). A dataset method, such as m.stocks.dividends(), returns a query. A query names the data and reads nothing. The methods below read the data and return a Deephaven table.
| Method | Returns |
|---|---|
blink() |
The stream as a blink table, which holds only the latest update cycle's rows. |
append_only() |
Every row the stream sends after the call, oldest first. |
ring(capacity) |
The latest capacity rows the stream sends. |
last_by(by='Symbol') |
The latest row of each key, by default one row per symbol. |
history(start, end=None) |
The dataset's rows over a range of days or of exact times. |
fetch() |
A table of every row Massive has now, up to the query's limit. |
poll(interval) |
A live table that fetches the query again every interval. |
Datasets in several asset classes¶
| Dataset | Asset classes |
|---|---|
trades |
Stocks, Options, Futures, Crypto |
last_trade |
Stocks, Options, Crypto |
quotes |
Stocks, Options, Futures, Forex, Crypto |
last_quote |
Stocks, Forex |
bars |
Stocks, Options, Futures, Indices, Forex, Crypto |
previous_day_bar |
Stocks, Options, Indices, Forex, Crypto |
fmv |
Stocks, Options, Forex, Crypto |
snapshots |
Stocks, Options, Futures, Indices, Forex, Crypto |
movers |
Stocks, Forex, Crypto |
daily_open_close |
Stocks, Options, Indices, Crypto |
contracts |
Options, Futures |
Stocks¶
| Dataset | Summary | Methods |
|---|---|---|
m.stocks.trades |
Trades of US-listed stocks, tick by tick. | blink(), append_only(), ring(), last_by(), history() |
m.stocks.last_trade |
The latest trade of each US-listed stock. | fetch(), poll() |
m.stocks.quotes |
National best bid and offer quotes of US-listed stocks, tick by tick. | blink(), append_only(), ring(), last_by(), history() |
m.stocks.last_quote |
The latest national best bid and offer of each US-listed stock. | fetch(), poll() |
m.stocks.bars |
Aggregate bars (open, high, low, close, volume) of US-listed stocks. | history(); for 1-second and 1-minute bars at multiplier=1 also blink(), append_only(), ring(), last_by() |
m.stocks.previous_day_bar |
The previous trading day's bar (open, high, low, close, volume) of US stocks. | fetch(), poll() |
m.stocks.luld |
Limit up-limit down price bands of US-listed stocks, as they change. | blink(), append_only(), ring(), last_by() |
m.stocks.imbalances |
Net order imbalances of US-listed stocks ahead of opening and closing auctions. | blink(), append_only(), ring(), last_by() |
m.stocks.fmv |
Massive's fair market value estimate of US-listed stocks, as it updates. | blink(), append_only(), ring(), last_by() |
m.stocks.snapshots |
Current market snapshots of US-listed stocks, one row per ticker. | fetch(), poll() |
m.stocks.movers |
The twenty US stocks with the largest percentage move today, up or down. | fetch(), poll() |
m.stocks.daily_open_close |
The open, close, and pre- and after-market prices of US stocks on one day. | fetch(), poll() |
m.stocks.dividends |
Cash dividends of US-listed stocks, one row per distribution. | fetch(), poll() |
m.stocks.splits |
Stock splits, reverse splits, and stock dividends of US-listed stocks. | fetch(), poll() |
m.stocks.ipos |
Initial public offerings on US exchanges, upcoming and past, one row per offering. | fetch(), poll() |
m.stocks.short_interest |
Short interest of US-listed stocks, one row per ticker and FINRA settlement date. | fetch(), poll() |
m.stocks.short_volume |
Daily short sale volume of US-listed stocks, one row per ticker and trading day. | fetch(), poll() |
m.stocks.share_float |
The free float of US-listed stocks: the latest count of shares the public can trade. | fetch(), poll() |
m.stocks.financials.balance_sheets |
Balance sheets of US public companies, one row per filer and reporting period. | fetch(), poll() |
m.stocks.financials.income_statements |
Income statements of US public companies, one row per filer and reporting period. | fetch(), poll() |
m.stocks.financials.cash_flow_statements |
Cash flow statements of US public companies, one row per filer and reporting period. | fetch(), poll() |
m.stocks.financials.ratios |
Daily valuation, profitability, liquidity, and leverage ratios of US stocks. | fetch(), poll() |
m.stocks.filings.index |
The index of SEC EDGAR filings by US-listed companies, one row per filing and filer. | fetch(), poll() |
m.stocks.filings.sections_10k |
The text of sections of 10-K annual reports, one row per filing and section. | fetch(), poll() |
m.stocks.filings.text_8k |
The item text of 8-K current reports, one row per filing and filer. | fetch(), poll() |
m.stocks.filings.disclosures_8k |
Disclosures in 8-K current reports, classified by category, one row per disclosure. | fetch(), poll() |
m.stocks.filings.risk_factors |
Risk factors disclosed in company filings, classified by category, one row each. | fetch(), poll() |
m.stocks.filings.institutional_holdings |
Holdings that institutional managers report on Form 13-F, one row per position. | fetch(), poll() |
m.stocks.filings.initial_insider_ownership |
Initial insider ownership statements (SEC Form 3), one row per reported holding. | fetch(), poll() |
m.stocks.filings.insider_transactions |
Insider transactions (SEC Form 4), one row per reported transaction or holding. | fetch(), poll() |
m.stocks.filings.insider_activity |
Open-market insider purchases and sales, summed per company and transaction day. | fetch(), poll() |
m.stocks.filings.insider_holdings |
Each company's insiders and the shares each one holds now, one row per insider. | fetch(), poll() |
m.stocks.filings.risk_factor_taxonomy |
The taxonomy that classifies filing risk factors, one row per category. | fetch(), poll() |
m.stocks.filings.disclosure_taxonomy |
The taxonomy that classifies 8-K disclosures, one row per category. | fetch(), poll() |
Options¶
| Dataset | Summary | Methods |
|---|---|---|
m.options.trades |
Trades of US-listed options contracts (OPRA), tick by tick. | blink(), append_only(), ring(), last_by(), history() |
m.options.last_trade |
The latest trade of each US-listed options contract. | fetch(), poll() |
m.options.quotes |
Quotes of US-listed options contracts (OPRA), tick by tick. | blink(), append_only(), ring(), last_by(), history() |
m.options.bars |
Aggregate bars (open, high, low, close, volume) of US-listed options contracts. | history(); for 1-second and 1-minute bars at multiplier=1 also blink(), append_only(), ring(), last_by() |
m.options.previous_day_bar |
The previous trading day's open, high, low, close, and volume of options contracts. | fetch(), poll() |
m.options.fmv |
Massive's fair market value of US-listed options contracts, streamed in real time. | blink(), append_only(), ring(), last_by() |
m.options.admin_messages |
OPRA's administrative messages, including FLEX trade notices, live and past. | blink(), append_only(), ring(), history() |
m.options.chain |
The snapshot of every contract in one underlying's option chain. | fetch(), poll() |
m.options.snapshots |
The current snapshot of each requested options contract, with its greeks. | fetch(), poll() |
m.options.contracts |
Options contracts by underlying: call or put, exercise style, expiration, and strike. | fetch(), poll() |
m.options.contract_details |
The options contracts you name: call or put, exercise style, expiration, and strike. | fetch(), poll() |
m.options.daily_open_close |
The open, high, low, close, and volume of each options contract on one day. | fetch(), poll() |
m.options.open_interest |
The open interest of each US-listed options contract at the end of each trading day. | fetch(), poll() |
m.options.open_interest_by_underlying |
Each underlying's open interest at the end of each trading day, calls and puts split out. | fetch(), poll() |
m.options.greeks |
The end-of-day greeks and implied volatility of each US-listed options contract. | fetch(), poll() |
m.options.exposure_by_underlying |
Each underlying's daily options exposure, with its gamma flip and call and put walls. | fetch(), poll() |
m.options.exposure_by_strike |
Each underlying's daily options exposure at each strike price, every expiration summed. | fetch(), poll() |
m.options.exposure_by_expiration |
Each underlying's daily options exposure for each expiration date, with its max pain. | fetch(), poll() |
m.options.unusual_trades |
Large trades and sweeps of US-listed options contracts, flagged by Massive. | fetch(), poll() |
Futures¶
| Dataset | Summary | Methods |
|---|---|---|
m.futures.trades |
Trades of futures contracts, tick by tick. | blink(), append_only(), ring(), last_by(), history() |
m.futures.quotes |
Best bid and offer quotes of futures contracts, tick by tick. | blink(), append_only(), ring(), last_by(), history() |
m.futures.bars |
Open, high, low, close, and volume bars of futures contracts. | history(); for 1-second and 1-minute bars at multiplier=1 also blink(), append_only(), ring(), last_by() |
m.futures.snapshots |
The latest trade, quote, minute bar, and session of each futures contract. | fetch(), poll() |
m.futures.contracts |
The specification of every listed futures contract. | fetch(), poll() |
m.futures.products |
The specification of every futures product. | fetch(), poll() |
m.futures.exchanges |
The exchanges and trading venues of US futures. | fetch(), poll() |
m.futures.market_status |
Whether each futures product is trading right now. | fetch(), poll() |
m.futures.schedules |
The timed events of each futures product's trading sessions. | fetch(), poll() |
Indices¶
| Dataset | Summary | Methods |
|---|---|---|
m.indices.values |
Index levels, tick by tick, as computed by the index providers. | blink(), append_only(), ring(), last_by(), history() |
m.indices.bars |
Open, high, low, and close index levels over fixed windows of time. | history(); for 1-second and 1-minute bars at multiplier=1 also blink(), append_only(), ring(), last_by() |
m.indices.previous_day_bar |
The previous trading day's open, high, low, and close of each index. | fetch(), poll() |
m.indices.snapshots |
The current state of each index: its level, its session so far, and its status. | fetch(), poll() |
m.indices.daily_open_close |
One day's opening, closing, high, and low levels of each index. | fetch(), poll() |
Forex¶
| Dataset | Summary | Methods |
|---|---|---|
m.forex.quotes |
Foreign exchange quotes: the best bid and ask of each currency pair, tick by tick. | blink(), append_only(), ring(), last_by(), history() |
m.forex.last_quote |
The latest best bid and ask of each currency pair. | fetch(), poll() |
m.forex.bars |
Aggregate bars of currency pairs: open, high, low, close, and volume per window. | history(); for 1-second and 1-minute bars at multiplier=1 also blink(), append_only(), ring(), last_by() |
m.forex.previous_day_bar |
The previous UTC day's open, high, low, close, and volume of each currency pair. | fetch(), poll() |
m.forex.fmv |
Massive's fair market value of each currency pair, streamed as it updates. | blink(), append_only(), ring(), last_by() |
m.forex.snapshots |
The current state of currency pairs: today's bar, the last minute, and the last quote. | fetch(), poll() |
m.forex.movers |
The twenty currency pairs that gained or lost the most since the previous UTC close. | fetch(), poll() |
m.forex.conversion |
An amount converted between two currencies at the latest quote. | fetch(), poll() |
Crypto¶
| Dataset | Summary | Methods |
|---|---|---|
m.crypto.trades |
Trades of crypto pairs, tick by tick, from the exchanges Massive aggregates. | blink(), append_only(), ring(), last_by(), history() |
m.crypto.last_trade |
The latest trade of each crypto pair. | fetch(), poll() |
m.crypto.quotes |
Quotes of crypto pairs: each exchange's best bid and ask, as they change. | blink(), append_only(), ring(), last_by() |
m.crypto.bars |
Open, high, low, close, and volume bars of crypto pairs, over any time window. | history(); for 1-second and 1-minute bars at multiplier=1 also blink(), append_only(), ring(), last_by() |
m.crypto.previous_day_bar |
The previous UTC day's open, high, low, close, and volume of each crypto pair. | fetch(), poll() |
m.crypto.fmv |
Massive's fair market value of crypto pairs, streamed as it updates. | blink(), append_only(), ring(), last_by() |
m.crypto.snapshots |
The current state of crypto pairs: today's, the last minute's, and yesterday's bars. | fetch(), poll() |
m.crypto.movers |
The 20 crypto pairs that gained or lost the most since the previous day's close. | fetch(), poll() |
m.crypto.daily_open_close |
The open and close prices of crypto pairs on one UTC day, with the trades behind them. | fetch(), poll() |
Reference data¶
| Dataset | Summary | Methods |
|---|---|---|
m.reference.tickers |
Tickers of stocks, OTC securities, indices, forex, and crypto, with listing details. | fetch(), poll() |
m.reference.ticker_details |
One ticker's company and listing details: address, branding, shares, and more. | fetch(), poll() |
m.reference.ticker_types |
The ticker type codes Massive uses, such as CS for common stock, with their names. |
fetch(), poll() |
m.reference.ticker_events |
The timeline of a ticker's events, such as ticker changes, one row per event. | fetch(), poll() |
m.reference.related_companies |
The companies Massive relates to a ticker, from news and returns data, one row each. | fetch(), poll() |
m.reference.news |
News articles about tickers, with their publishers and sentiment insights. | fetch(), poll() |
m.reference.exchanges |
The exchanges, trade reporting facilities, and SIPs Massive knows, with their codes. | fetch(), poll() |
m.reference.conditions |
The trade and quote condition codes, with what each means and how it updates bars. | fetch(), poll() |
m.reference.market_status |
Whether the markets are open now, by exchange, currency market, and index group. | fetch(), poll() |
m.reference.market_holidays |
The upcoming market holidays and early closes, one row per exchange and day. | fetch(), poll() |
Technical indicators¶
| Dataset | Summary | Methods |
|---|---|---|
m.indicators.sma |
The simple moving average of a ticker's bars, one row per bar. | fetch(), poll() |
m.indicators.ema |
The exponential moving average of a ticker's bars, one row per bar. | fetch(), poll() |
m.indicators.rsi |
The relative strength index of a ticker's bars, from 0 to 100, one row per bar. | fetch(), poll() |
m.indicators.macd |
The moving average convergence/divergence of a ticker's bars, one row per bar. | fetch(), poll() |
Economy¶
| Dataset | Summary | Methods |
|---|---|---|
m.economy.treasury_yields |
US Treasury yields at constant maturities from one month to 30 years, one row per day. | fetch(), poll() |
m.economy.inflation |
US inflation: CPI, core CPI, and the PCE price indexes and spending, one row per month. | fetch(), poll() |
m.economy.inflation_expectations |
US inflation expectations from market prices and models, one row per day. | fetch(), poll() |
m.economy.labor_market |
US labor-market indicators: unemployment, participation, earnings, and job openings. | fetch(), poll() |
m.economy.funding_conditions |
US short-term funding conditions: policy, overnight, and repo rates, one row per day. | fetch(), poll() |
Partner data¶
| Dataset | Summary | Methods |
|---|---|---|
m.partners.benzinga.analysts |
Benzinga's profiles of sell-side analysts, with each analyst's firm and track record. | fetch(), poll() |
m.partners.benzinga.analyst_insights |
Benzinga analyst insights on US stocks: a rating, a price target, and the reason. | fetch(), poll() |
m.partners.benzinga.ratings |
Analyst rating and price-target actions on US stocks, as reported by Benzinga. | fetch(), poll() |
m.partners.benzinga.consensus_ratings |
The consensus of analyst ratings and price targets for each US stock, from Benzinga. | fetch(), poll() |
m.partners.benzinga.bulls_bears_say |
Benzinga's bull case and bear case summaries for US stocks. | fetch(), poll() |
m.partners.benzinga.guidance |
Earnings and revenue guidance issued by US companies, as reported by Benzinga. | fetch(), poll() |
m.partners.benzinga.earnings |
Earnings announcements of US companies from Benzinga, with estimates and surprises. | fetch(), poll() |
m.partners.benzinga.firms |
The research firms behind Benzinga's analyst ratings. | fetch(), poll() |
m.partners.benzinga.news |
Benzinga news articles, with headline, teaser, body, and the tickers each one names. | fetch(), poll() |
m.partners.etf_global.analytics |
ETF Global's quantitative risk, reward, and quality scores for US-listed ETFs. | fetch(), poll() |
m.partners.etf_global.constituents |
The holdings of US-listed ETFs from ETF Global, one row per fund, date, and holding. | fetch(), poll() |
m.partners.etf_global.fund_flows |
Daily fund flows, net asset value, and shares outstanding of US-listed ETFs. | fetch(), poll() |
m.partners.etf_global.profiles |
ETF Global's profiles of US ETFs: issuer, fees, assets, trading, and exposures. | fetch(), poll() |
m.partners.etf_global.taxonomies |
ETF Global's classification of US-listed ETFs by strategy, structure, and exposure. | fetch(), poll() |
m.partners.tmx.corporate_events |
Corporate events from TMX: earnings dates, dividends, conferences, and more. | fetch(), poll() |
m.partners.fable.merchant_aggregates |
Daily European consumer spending per merchant, from Fable Data's transaction panel. | fetch(), poll() |
m.partners.fable.merchant_hierarchy |
Fable Data's map from merchants to parent companies, tickers, and industries. | fetch(), poll() |
Any asset class¶
| Dataset | Summary | Methods |
|---|---|---|
m.snapshots |
The current state of tickers of any asset class, from Massive's unified snapshot. | fetch(), poll() |
Shared arguments¶
These arguments follow the same rules on every dataset that takes them. A dataset's page gives what is particular to that dataset and links here.
symbols¶
Each symbol is Massive's ticker, spelled exactly:
| Asset class | Ticker |
|---|---|
| Stocks | AAPL, BRK.B |
| Options | O:SPY271217C00700000: O: and the OCC option symbol |
| Indices | I:SPX |
| Forex | C:EURUSD |
| Crypto | X:BTCUSD |
| Futures | ESZ6 |
- Pass one symbol as text, several as a list, or a table with a
Symbolcolumn. - A live table works as a watchlist. Symbols you add are read, and symbols you delete stop being read.
- A dataset's page says when
dm.ALLor leavingsymbolsout reads every symbol. - In text or a list, any other spelling, such as
aapl, raisesValueError, unless the dataset's page says it takes another source's tickers. In a table, that row is skipped, andm.problems()lists it. - To convert another source's tickers, use
dm.canonicalize_symbolsfor a table ordm.canonical_symbolfor one value. A stock needs the source's convention:dm.canonical_symbol("BRK-B", dm.AssetClass.STOCKS, convention=dm.SymbolConvention.YAHOO)returnsBRK.B. A row that doesn't convert gets a nullSymbol, which every dataset skips.
start¶
The first day or instant of the range. Give start and end as two dates or two instants.
- A date is text such as
"2025-06-02", a Pythondate, or a DeephavenLocalDate. It's the day in the market's time zone: New York for stocks, options, and indices, and UTC for forex and crypto. For index bars of a day or longer, it's the Chicago day, since Massive starts those bars at midnight Chicago time. For futures, it's the trading session that ends that day. - An instant is a Python
datetimewith a time zone, a DeephavenInstant, or Deephaven time text such as"2025-06-02T09:30 ET". - A dataset whose range is a calendar date, such as an ex-dividend date, takes dates only.
end¶
The end of the range, in the same form as start. A last day is included, and an instant the range stops at is excluded. Leave it out for no end. Rows dated in the future, such as upcoming IPOs, then come back too.
date¶
One calendar day, in the same forms as a start date.
as_of¶
Read the data as it stood on this date. Leave it out for Massive's latest data.
sort¶
The field to order the rows by, as Massive names it, such as "ex_dividend_date". Each dataset's page lists the fields it takes.
order¶
The direction of the rows: dm.Order.ASC or dm.Order.DESC. On a dataset with sort, give the two together.
limit¶
The most rows to return. Each dataset's page says whether the limit counts each symbol's rows or all of them. To keep the latest rows, sort newest first, such as sort="ex_dividend_date", order=dm.Order.DESC.
filters¶
Any other parameter Massive documents for the dataset, as a dict. Write each dot in a name as _: Massive's strike_price.gte is strike_price_gte. Each dataset's page lists the keys it takes, and any other key raises ValueError.
adjusted¶
True, the default, adjusts prices and volumes for splits. False gives them as traded. Live bars and bars from flat files are always as traded.
timespan¶
The unit of each bar, a dm.Timespan member such as dm.Timespan.MINUTE or dm.Timespan.DAY. SESSION bars are futures trading sessions, and a futures DAY bar is one session too. On a bars dataset, one-second and one-minute bars with multiplier=1 also stream. Bars of other lengths are history only.
multiplier¶
How many timespan units each bar spans, 1 by default. timespan=dm.Timespan.MINUTE, multiplier=5 gives five-minute bars.
venues¶
The futures exchanges whose flat files history() reads, as a set of dm.FuturesVenue members, such as {dm.FuturesVenue.CME, dm.FuturesVenue.CBOT}. Each exchange's file of a day holds every contract it trades, so naming fewer exchanges downloads less.
Massive refuses the files of an exchange your plan doesn't include. history() reads REST instead when REST can serve the read. When it must read flat files (dm.ALL, or source=dm.HistorySource.FLAT_FILES):
- Left out, the read tries every exchange and skips each one Massive refuses.
m.problems()lists each exchange it skipped. - An exchange you name follows the
refused_venuescause ofon_error. - If Massive refuses every exchange, the read fails.
on_error¶
A dm.ErrorPolicy that sets what each kind of problem does in this call, such as dm.ErrorPolicy(noncanonical_symbols=dm.OnError.RAISE). A problem is one bad symbol, row, file line, or refused futures exchange. Each kind is a cause. Each cause the policy leaves unset follows the session's MassiveConfig.on_error, then dm.ErrorPolicy.DEFAULTS. By default every cause logs, but refused_venues raises. help(dm.ErrorPolicy) lists the causes. Bad symbols and rows says what each value does.
Column types¶
Each column has one of these Deephaven types:
| Type | Holds |
|---|---|
double |
A 64-bit floating-point number, Python's float |
long |
A 64-bit integer |
Boolean |
True or false |
String |
Text |
Instant |
An exact moment in time |
long[] |
An array of long |
String[] |
An array of String |
Columns whose type differs by asset class¶
These columns have different types in different asset classes of the same dataset, such as m.stocks.snapshots and m.crypto.snapshots. To merge two such tables, select the same columns from each, then cast one table's column to the other's type, such as a.update("LastTradeSize = (double) LastTradeSize"):
| Dataset | Column | Types |
|---|---|---|
snapshots |
LastQuoteBidSize |
long for stocks and futures, double for options |
snapshots |
LastQuoteAskSize |
long for stocks and futures, double for options |
snapshots |
LastTradeSize |
long for stocks, options and futures, double for crypto |
movers |
LastTradeSize |
long for stocks, double for crypto |