> For the full documentation index, see: https://massive.com/docs/llms.txt

# REST
## Options

### Exposure by Expiration

**Endpoint:** `GET /options/v1/analytics/expiration`

**Description:**

Retrieve daily options analytics per underlying asset and expiration date: open
interest with calls and puts split out, max pain, net gamma exposure, and delta
exposure. Each record counts only standard contracts that deliver 100 shares. Filter
by `underlying_ticker`, by `expiration_date` for a single expiration or a date range,
and by `date` for a single day or a date range.

The `date` field is the trading session each figure is for. Open interest is published
each morning for the prior session; the Greeks-based exposure values are measured 15
minutes before the close on that session.

Use Cases: Max pain analysis, expiration-based gamma exposure, pinning and positioning
around key expirations, options flow modeling.

## Query Parameters

| Parameter | Type | Required | Description |
| --- | --- | --- | --- |
| `underlying_ticker` | string | No | The ticker of the underlying asset (e.g., AAPL). The values cover every root on the underlying asset. |
| `underlying_ticker.any_of` | string | No | Filter equal to any of the values. Multiple values can be specified by using a comma separated list. |
| `expiration_date` | string | No | The expiration date of the contracts (formatted as YYYY-MM-DD). Value must be formatted 'yyyy-mm-dd'. |
| `expiration_date.gt` | string | No | Filter greater than the value. Value must be formatted 'yyyy-mm-dd'. |
| `expiration_date.gte` | string | No | Filter greater than or equal to the value. Value must be formatted 'yyyy-mm-dd'. |
| `expiration_date.lt` | string | No | Filter less than the value. Value must be formatted 'yyyy-mm-dd'. |
| `expiration_date.lte` | string | No | Filter less than or equal to the value. Value must be formatted 'yyyy-mm-dd'. |
| `date` | string | No | The trading date the values apply to (formatted as YYYY-MM-DD). Open interest is as published the morning of date, for the prior trading day's close. Greeks are from 15 minutes before the close on date. Value must be formatted 'yyyy-mm-dd'. |
| `date.gt` | string | No | Filter greater than the value. Value must be formatted 'yyyy-mm-dd'. |
| `date.gte` | string | No | Filter greater than or equal to the value. Value must be formatted 'yyyy-mm-dd'. |
| `date.lt` | string | No | Filter less than the value. Value must be formatted 'yyyy-mm-dd'. |
| `date.lte` | string | No | Filter less than or equal to the value. Value must be formatted 'yyyy-mm-dd'. |
| `limit` | integer | No | Limit the maximum number of results returned. Defaults to '100' if not specified. The maximum allowed limit is '50000'. |
| `sort` | string | No | A comma separated list of sort columns. For each column, append '.asc' or '.desc' to specify the sort direction. The sort column defaults to 'date' if not specified. The sort order defaults to 'desc' if not specified. |
| `fields` | string | No | A comma-separated list of fields to return for each result (e.g. `date,delta_exposure,excluded_open_interest`). If omitted, all fields are returned. When set, each result contains only the fields you list; every other field is dropped, even fields a full response always includes. Nested fields can be specified using dot notation (for example, `parent.child`). |

## Response Formats

This endpoint returns JSON by default, and Apache Arrow when the request sends `Accept: application/vnd.apache.arrow.file`. The Arrow body has no `next_url`; to page through results, read the next page's URL from the `Link` response header (`rel="next"`).

## Response Attributes

| Field | Type | Description |
| --- | --- | --- |
| `next_url` | string | If present, this value can be used to fetch the next page. |
| `request_id` | string | A request id assigned by the server. |
| `results` | array[object] | The results for this request. |
| `results[].date` | string | The trading date the values apply to (formatted as YYYY-MM-DD). Open interest is as published the morning of date, for the prior trading day's close. Greeks are from 15 minutes before the close on date. |
| `results[].delta_exposure` | number | 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. |
| `results[].excluded_open_interest` | integer | 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. |
| `results[].expiration_date` | string | The expiration date of the contracts (formatted as YYYY-MM-DD). |
| `results[].gamma_exposure` | number | 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. |
| `results[].gamma_exposure_calls` | number | Gamma exposure of the call contracts (positive). Null if no call contract has Greeks. |
| `results[].gamma_exposure_puts` | number | Gamma exposure of the put contracts (negative). Null if no put contract has Greeks. |
| `results[].max_pain` | number | 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. |
| `results[].open_interest` | integer | Total open interest of the standard (not binary) contracts with a standard deliverable of 100 shares. |
| `results[].open_interest_calls` | integer | Total open interest of the standard (not binary) call contracts with a standard deliverable of 100 shares. |
| `results[].open_interest_puts` | integer | Total open interest of the standard (not binary) put contracts with a standard deliverable of 100 shares. |
| `results[].open_interest_with_greeks` | integer | Open interest of the contracts that count in the exposure values: contracts with open interest above 0 and a gamma and a delta. |
| `results[].underlying_price` | number | 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. |
| `results[].underlying_ticker` | string | The ticker of the underlying asset (e.g., AAPL). The values cover every root on the underlying asset. |
| `status` | enum: OK | The status of this request's response. |

## Sample Response

```json
{
  "next_url": "https://api.massive.com/options/v1/analytics/expiration?cursor=YXA9ZGF0ZT0yMDI2LTEwLTI5JnVuZGVybHlpbmdfdGlja2VyPUFBUEwmZXhwaXJhdGlvbl9kYXRlPTIwMjYtMTEtMDQmbGltaXQ9MiZzb3J0PWRhdGUuZGVzYw",
  "request_id": "2a6d9f1c4e7b4a3d8f5c0e2b6d9a1f4c",
  "results": [
    {
      "date": "2026-10-29",
      "delta_exposure": 1489882581.1,
      "excluded_open_interest": 0,
      "expiration_date": "2026-10-30",
      "gamma_exposure": 474342855.02,
      "gamma_exposure_calls": 683276314.77,
      "gamma_exposure_puts": -208933459.75,
      "max_pain": 342.5,
      "open_interest": 323918,
      "open_interest_calls": 152319,
      "open_interest_puts": 171599,
      "open_interest_with_greeks": 230928,
      "underlying_price": 349.5103,
      "underlying_ticker": "AAPL"
    },
    {
      "date": "2026-10-29",
      "delta_exposure": 278960473.2,
      "excluded_open_interest": 0,
      "expiration_date": "2026-11-04",
      "gamma_exposure": 57835242.23,
      "gamma_exposure_calls": 76884104.38,
      "gamma_exposure_puts": -19048862.14,
      "max_pain": 345,
      "open_interest": 43909,
      "open_interest_calls": 31819,
      "open_interest_puts": 12090,
      "open_interest_with_greeks": 43325,
      "underlying_price": 349.5103,
      "underlying_ticker": "AAPL"
    }
  ],
  "status": "OK"
}
```


## Plan Access

**Plan Access:** Included in select Options plans

#### Individual Plans

| Plan | Access |
| --- | --- |
| Options Basic | Not included |
| Options Starter | Not included |
| Options Developer | Not included |
| Options Advanced | Included |

#### Business Plans

| Plan | Access |
| --- | --- |
| Options Business | Not included |
| Options Exposure Business | Included |

## Plan Recency

**Plan Recency:** End-of-day (updated daily)

#### Individual Plans

| Plan | Recency |
| --- | --- |
| Options Basic | Not included |
| Options Starter | Not included |
| Options Developer | Not included |
| Options Advanced | End-of-day |

#### Business Plans

| Plan | Recency |
| --- | --- |
| Options Business | Not included |
| Options Exposure Business | End-of-day |

## Plan History

**Plan History:** Records date back to September 1, 2022

#### Individual Plans

| Plan | History |
| --- | --- |
| Options Basic | Not included |
| Options Starter | Not included |
| Options Developer | Not included |
| Options Advanced | All history |

#### Business Plans

| Plan | History |
| --- | --- |
| Options Business | Not included |
| Options Exposure Business | All history |
