m.options.open_interest¶
The open interest of each US-listed options contract at the end of each trading day.
Call it from a session m, made with dm.MassiveSession():
m.options.open_interest(symbols=None, *, root=None, contract_type=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 perSymbolandDate
Arguments¶
A linked argument follows its rule under shared arguments on the dataset index.
| Argument | Description |
|---|---|
symbols |
Option contracts; leave it out for every contract. |
root |
An OCC root, such as "SPXW", or several; leave it out for every root. |
contract_type |
dm.ContractType.CALL or PUT; leave it out for both. |
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 {"expiration_date": "2026-12-18"}. Keys: expiration_date, expiration_date_gt, expiration_date_gte, expiration_date_lt, expiration_date_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 | Open Interest by Contract (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 ticker: "The options ticker symbol (e.g., O:SPY260123C00687000)." |
Date |
String | The trading date the open interest applies to (formatted as YYYY-MM-DD). |
OptionRoot |
String | The OCC root symbol of the contract (e.g., SPXW). Differs from the underlying for weekly roots and for contracts adjusted after a corporate action (e.g., AMCR1). |
ContractType |
String | The contract type. Possible values: call, put. |
ExpirationDate |
String | The date the contract expires (formatted as YYYY-MM-DD). |
OpenInterest |
long | The number of outstanding contracts that have not been closed or exercised, as of the last open interest update of the day. |
StrikePrice |
double | The strike price of the contract. |
Underlying |
String | The instrument Massive lists the row under, as Massive's ticker. From REST underlying_ticker: "The ticker of the contract's underlying (e.g., SPX). Weekly and adjusted roots are folded in, so SPXW contracts report SPX and AMCR1 contracts report AMCR; see root to tell them apart." Massive's root is the OptionRoot column. An index has its I: prefix (I:SPX), as in m.options.contracts(). If Massive's Contract Overview can't say whether a root is an index, the library leaves its rows out and lists them in m.problems() as unreadable_symbols. |
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 |
Date |
date |
OptionRoot |
root |
ContractType |
contract_type |
ExpirationDate |
expiration_date |
OpenInterest |
open_interest |
StrikePrice |
strike_price |
Underlying |
underlying_ticker |
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.