Skip to content

m.options.exposure_by_expiration

Each underlying's daily options exposure for each expiration date, with its max pain.

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

m.options.exposure_by_expiration(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, Date and ExpirationDate

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 "gamma_exposure". 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 {"expiration_date_lte": "2026-12-31"}. Keys: expiration_date, expiration_date_gt, expiration_date_gte, expiration_date_lt, expiration_date_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 Exposure by Expiration (REST)
Options Basic Not included
Options Starter Not included
Options Developer Not included
Options Advanced End-of-day, All history
Options Business Not included
Options Exposure 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 asset (e.g., AAPL). The values cover every root on the underlying asset." 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 session the values apply to (formatted as YYYY-MM-DD). Open interest is for this session, published the next morning. Greeks are from 15 minutes before the close on date.
DeltaExposure double Delta exposure in dollars: the sum of open interest x 100 x delta x underlying_price. Put deltas are negative. Null if no contract has Greeks.
ExcludedOpenInterest long Open interest of binary options and of the contracts that do not have a standard deliverable of 100 shares, for example contracts adjusted after a corporate action. These contracts are not in any other field.
ExpirationDate String The expiration date of the contracts (formatted as YYYY-MM-DD).
GammaExposure double Net gamma exposure in dollars per 1% move of the underlying price: the sum of open interest x 100 x gamma x underlying_price² x 0.01, with calls positive and puts negative. Null if no contract has Greeks.
GammaExposureCalls double Gamma exposure of the call contracts (positive). Null if no call contract has Greeks.
GammaExposurePuts double Gamma exposure of the put contracts (negative). Null if no put contract has Greeks.
MaxPain double The strike price at which the open contracts of this expiration date have the smallest total value if the underlying asset settles there. Every strike price of the expiration date is a candidate. If strike prices tie, the lower one. Null if the expiration date has no open interest.
OpenInterest long Total open interest of the standard (not binary) contracts with a standard deliverable of 100 shares.
OpenInterestCalls long Total open interest of the standard (not binary) call contracts with a standard deliverable of 100 shares.
OpenInterestPuts long Total open interest of the standard (not binary) put contracts with a standard deliverable of 100 shares.
OpenInterestWithGreeks long Open interest of the contracts that count in the exposure values: contracts with open interest above 0 and a gamma and a delta.
UnderlyingPrice double The underlying price used for the Greeks: the last SIP trade, or the last published index value, at or before 15 minutes before the close. Null if no contract of the expiration date has Greeks.
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
DeltaExposure delta_exposure
ExcludedOpenInterest excluded_open_interest
ExpirationDate expiration_date
GammaExposure gamma_exposure
GammaExposureCalls gamma_exposure_calls
GammaExposurePuts gamma_exposure_puts
MaxPain max_pain
OpenInterest open_interest
OpenInterestCalls open_interest_calls
OpenInterestPuts open_interest_puts
OpenInterestWithGreeks open_interest_with_greeks
UnderlyingPrice underlying_price
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.