Skip to content

GET /v1/expiries/{ticker}/quartiles

Endpoints

GET /v1/expiries/{ticker}/quartiles

Open-interest quartiles across every listed expiry

Description Every listed expiry of the ticker, ranked by its open interest, as of the latest pipeline run: each expiry's open interest, its share of the chain total, and its quartile (1 = the upper quartile). uq_coverage_pct is the share of the total held by the upper-quartile expiries. The whole chain is ranked; there is no DTE window.

Input parameters

Parameter In Type Default Nullable Description
quartile_cut query number 0.25 No Rank below which an expiry is in the upper quartile (quartile 1), from 0.05 to 0.5. Default 0.25 (the top quarter of expiries by open interest).
ticker path string No Stock/options ticker symbol (e.g. SPY, QQQ, BRK.B)

Request headers

Header Required Description
X-API-Key Required Your API key, sent on every request.
X-Correlation-ID Optional Request ID for tracing. If omitted, the server assigns one and returns it in the X-Correlation-ID response header.

Response 200 OK

application/json

{
    "status": "completed",
    "ticker": "QQQ",
    "generated_at": "2026-07-21T14:35:00-04:00",
    "session_date": "2026-07-21",
    "session_status": "live",
    "run_time": "2026-07-21T14:35:00-04:00",
    "oi_basis": "net",
    "quartile_cut": 0.25,
    "total_oi": 1000000,
    "uq_coverage_pct": 55.0,
    "expiries": [
        {
            "expiry_date": "2026-08-21",
            "dte": 31,
            "oi": 300000,
            "oi_pct": 30.0,
            "quartile": 1,
            "rank": 0.0
        },
        {
            "expiry_date": "2026-09-18",
            "dte": 59,
            "oi": 250000,
            "oi_pct": 25.0,
            "quartile": 1,
            "rank": 0.125
        },
        {
            "expiry_date": "2026-12-18",
            "dte": 150,
            "oi": 150000,
            "oi_pct": 15.0,
            "quartile": 2,
            "rank": 0.25
        },
        {
            "expiry_date": "2026-07-21",
            "dte": 0,
            "oi": 90000,
            "oi_pct": 9.0,
            "quartile": 2,
            "rank": 0.375
        },
        {
            "expiry_date": "2026-07-31",
            "dte": 10,
            "oi": 80000,
            "oi_pct": 8.0,
            "quartile": 3,
            "rank": 0.5
        },
        {
            "expiry_date": "2026-07-24",
            "dte": 3,
            "oi": 60000,
            "oi_pct": 6.0,
            "quartile": 3,
            "rank": 0.625
        },
        {
            "expiry_date": "2026-07-22",
            "dte": 1,
            "oi": 40000,
            "oi_pct": 4.0,
            "quartile": 4,
            "rank": 0.75
        },
        {
            "expiry_date": "2026-07-23",
            "dte": 2,
            "oi": 30000,
            "oi_pct": 3.0,
            "quartile": 4,
            "rank": 0.875
        }
    ],
    "error_message": null,
    "error_code": null,
    "metadata": null
}

Schema of the response body

{
    "properties": {
        "status": {
            "type": "string",
            "title": "Status",
            "description": "Command execution status: completed, failed, etc."
        },
        "ticker": {
            "anyOf": [
                {
                    "type": "string"
                },
                {
                    "type": "null"
                }
            ],
            "title": "Ticker"
        },
        "generated_at": {
            "anyOf": [
                {
                    "type": "string"
                },
                {
                    "type": "null"
                }
            ],
            "title": "Generated At",
            "description": "ET ISO 8601 timestamp when this response was generated"
        },
        "session_date": {
            "anyOf": [
                {
                    "type": "string"
                },
                {
                    "type": "null"
                }
            ],
            "title": "Session Date",
            "description": "ET trading session (YYYY-MM-DD) the served data belongs to. It moves to the next session with that session's first data update with option quotes from that session: from about 20:15 ET the evening before for SPX and VIX (their options trade overnight); for other tickers with their first premarket option quote, or at the 09:30 ET open."
        },
        "session_status": {
            "anyOf": [
                {
                    "$ref": "#/components/schemas/SessionStatus"
                },
                {
                    "type": "null"
                }
            ],
            "description": "Where session_date stands now: premarket (not open yet), live (from the 09:30 ET open to the close), or provisional (closed; the data is not final yet). Holidays and early closes follow the exchange calendar."
        },
        "run_time": {
            "anyOf": [
                {
                    "type": "string"
                },
                {
                    "type": "null"
                }
            ],
            "title": "Run Time",
            "description": "ISO 8601 timestamp of the pipeline run the open interest is from"
        },
        "oi_basis": {
            "anyOf": [
                {
                    "type": "string"
                },
                {
                    "type": "null"
                }
            ],
            "title": "Oi Basis",
            "description": "`net`: the open interest served on every GE route; the only basis in this release"
        },
        "quartile_cut": {
            "anyOf": [
                {
                    "type": "number"
                },
                {
                    "type": "null"
                }
            ],
            "title": "Quartile Cut",
            "description": "Rank below which an expiry is in the upper quartile (quartile 1); the request value or 0.25"
        },
        "total_oi": {
            "anyOf": [
                {
                    "type": "integer"
                },
                {
                    "type": "null"
                }
            ],
            "title": "Total Oi",
            "description": "Sum of every expiry's oi (contracts)"
        },
        "uq_coverage_pct": {
            "anyOf": [
                {
                    "type": "number"
                },
                {
                    "type": "null"
                }
            ],
            "title": "Uq Coverage Pct",
            "description": "Share of total_oi held by the upper-quartile expiries, in percent (sum of their oi_pct)"
        },
        "expiries": {
            "anyOf": [
                {
                    "items": {
                        "$ref": "#/components/schemas/ExpiryQuartileModel"
                    },
                    "type": "array"
                },
                {
                    "type": "null"
                }
            ],
            "title": "Expiries",
            "description": "Every listed expiry in the chain, ordered by oi from high to low"
        },
        "error_message": {
            "anyOf": [
                {
                    "type": "string"
                },
                {
                    "type": "null"
                }
            ],
            "title": "Error Message"
        },
        "error_code": {
            "anyOf": [
                {
                    "type": "string"
                },
                {
                    "type": "null"
                }
            ],
            "title": "Error Code"
        },
        "metadata": {
            "anyOf": [
                {
                    "additionalProperties": true,
                    "type": "object"
                },
                {
                    "type": "null"
                }
            ],
            "title": "Metadata"
        }
    },
    "type": "object",
    "required": [
        "status"
    ],
    "title": "ExpiryQuartilesResponse",
    "description": "Every listed expiry of a ticker ranked by open interest, from the latest pipeline run."
}
Name Description Schema
X-Correlation-ID Request ID for tracing: the value you sent in X-Correlation-ID, or one the server generated. Returned on every response the API produces; some edge errors (e.g. rate limiting) may omit it. string

Schemas

ErrorResponse

Name Type Description
command_name Command the request mapped to (e.g. 'centab')
error_code string Consumer-facing 7000000-family error code
error_message string Generic, source-agnostic error message
status string Always 'failed' for an error body
target Offending request field for 7000000 (e.g. 'ticker')

ExpiryQuartileModel

Name Type Description
dte integer Whole days to expiration, counted to 16:00 ET as of the pipeline run
expiry_date string Listed expiration date (YYYY-MM-DD)
oi integer Open interest of this expiry (contracts): the absolute value of its call + put total; never negative
oi_pct number This expiry's share of total_oi, in percent (oi / total_oi × 100)
quartile integer 1 to 4: 1 is the upper quartile (rank below quartile_cut), 2 below 0.5, 3 below 0.75, 4 the rest
rank number Position in the oi order, high to low, divided by the number of expiries (0 = largest; equal oi: earlier expiry first)

ExpiryQuartilesResponse

Name Type Description
error_code
error_message
expiries Every listed expiry in the chain, ordered by oi from high to low
generated_at ET ISO 8601 timestamp when this response was generated
metadata
oi_basis net: the open interest served on every GE route; the only basis in this release
quartile_cut Rank below which an expiry is in the upper quartile (quartile 1); the request value or 0.25
run_time ISO 8601 timestamp of the pipeline run the open interest is from
session_date ET trading session (YYYY-MM-DD) the served data belongs to. It moves to the next session with that session's first data update with option quotes from that session: from about 20:15 ET the evening before for SPX and VIX (their options trade overnight); for other tickers with their first premarket option quote, or at the 09:30 ET open.
session_status Where session_date stands now: premarket (not open yet), live (from the 09:30 ET open to the close), or provisional (closed; the data is not final yet). Holidays and early closes follow the exchange calendar.
status string Command execution status: completed, failed, etc.
ticker
total_oi Sum of every expiry's oi (contracts)
uq_coverage_pct Share of total_oi held by the upper-quartile expiries, in percent (sum of their oi_pct)

SessionStatus

Type: string

Errors

HTTP Meaning Body
400 That ticker symbol doesn't look valid. Please check it and try again. ErrorResponse
401 Your API key is missing or invalid. Please check the X-API-Key header. ErrorResponse
403 This data isn't included in your current plan. ErrorResponse
404 We don't have data for that ticker. Double-check the symbol. ErrorResponse
422 We couldn't prepare this data right now. Please try again shortly. ErrorResponse
500 Something went wrong on our end. Try again, or contact support if it persists. ErrorResponse
502 We can't reach the market data right now. Please try again shortly. ErrorResponse
503 The service is briefly unavailable. Please try again in a moment. ErrorResponse
504 This request took too long. Please try again. ErrorResponse

Request example

Replace any YOUR_... query values before sending.

curl --request GET "https://api.gammaedge.us/v1/expiries/AAPL/quartiles" \
  --header "X-API-Key: $GAMMAEDGE_API_KEY"

See error handling and rate limits for retry guidance.