Skip to content

V3_OPTION_HISTORY_OPEN_INTEREST()

ValueStandardPro
  • Open Interest is normally reported once per day by OPRA at approximately 06:30 ET.
  • A new open interest message might not be sent by OPRA if there is no open interest for the option contract.
  • The reported open interest represents the open interest at the end of the previous trading day.

Example

=THETADATA.V3_OPTION_HISTORY_OPEN_INTEREST("AAPL", "", "20241108", "220.000", "call", "", "", "20241104", "20241107")

Parameters

symbolRequired  -

The stock or index symbol, or underlying symbol for options.

Type: string
Behavior: Required.
date  -

The date to fetch data for. If present, this overrides start_date and end_date.

Type: string
Behavior: Optional.
expiration  -

The expiration of the contract in YYYY-MM-DD or YYYYMMDD format, or * for all expirations.

Type: string
Behavior: Optional - leave blank for all expirations.
strike  -

The strike price of the contract in dollars (ie 100.00 for $100.00), or * for all strikes.

Type: string
Behavior: Optional (default: *).
right  -

The right (call or put) of the contract.

Type: string
Behavior: Optional (default: both).
Enumcall, put, both
max_dte  -

If specified, only contracts with a full calendar day 'Days to Expiration' (DTE) less than or equal to this number will be returned.

Type: string
Behavior: Optional.
strike_range  -

Limits the number of contracts returned relative to the underlying's spot price. For a specified value 'n', this returns 'n' strikes above and 'n' strikes below the spot price, plus one at-the-money (ATM) strike (where spot price = strike price), if available. This results in a maximum of 2n + 1 strikes.

Type: string
Behavior: Optional.
start_date  -

The start date (inclusive).

Type: string
Behavior: Optional.
end_date  -

The end date (inclusive).

Type: string
Behavior: Optional.

Returns

A grid (string[][]) - a header row followed by one row per result. See the REST API reference for the full response schema.