Skip to content

m.options.open_interest_by_underlying

Each underlying's open interest at the end of each trading day, calls and puts split out.

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

m.options.open_interest_by_underlying(symbols=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 per Symbol and Date

Dataset index

Arguments

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

Argument Description
symbols Stock, ETF, or index tickers, such as "AAPL" or "I:SPX"; leave it out for every underlying.
start The first trading day.
end The last trading day.
sort Any of Massive's field names, such as "open_interest". 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 {"underlying_ticker_gte": "A"}. Keys: underlying_ticker_gt, underlying_ticker_gte, underlying_ticker_lt, underlying_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 Open Interest by Underlying (REST)
Options Basic Not included
Options Starter Not included
Options Developer Not included
Options Advanced End-of-day, All history
Options Business Not included
Historical Options Analytics Business End-of-day, All history

Columns

Column Type Description
Symbol String The row's instrument, as Massive's ticker. From REST underlying_ticker: "The ticker of the underlying (e.g., SPX). Totals cover every root on the underlying, so weekly roots (SPXW) and roots adjusted after a corporate action (AMCR1) are included." The underlying, with its I: prefix for an index (I:SPX), as in m.options.contracts(). If Massive's All Contracts list can't say whether a ticker is an index, the library leaves its rows out and lists them in m.problems() as unreadable_symbols. A ticker that names both a stock and an index (DJT) is classified by the first contract Massive lists for it, and the library can't tell whether Massive's row counts the stock's options, the index's, or both. A watchlist gets a row only under the spelling the library gives it: its row under the other spelling is left out, as an unrequested_symbols problem.
Date String The trading date the open interest applies to (formatted as YYYY-MM-DD).
OpenInterest long Total open interest across every contract on the underlying.
OpenInterestCalls long Total open interest across the underlying's call contracts.
OpenInterestPuts long Total open interest across the underlying's put contracts.
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 underlying_ticker
Date date
OpenInterest open_interest
OpenInterestCalls open_interest_calls
OpenInterestPuts open_interest_puts
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.