Skip to content

GET /v1/expiries/{ticker}

Endpoints

GET /v1/expiries/{ticker}

Get all expiration dates for a ticker

Description Returns every expiry in the served chain, nearest first, with DTE and optional expiry classification.

Input parameters

Parameter In Type Default Nullable Description
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": "AAPL",
    "generated_at": "2026-07-21T14:35:00-04:00",
    "session_date": "2026-07-21",
    "session_status": "live",
    "expiries": [
        {
            "expiry_date": "2026-07-24",
            "dte": 3
        }
    ],
    "error_message": null,
    "error_code": null,
    "metadata": null
}

Schema of the response body

{
    "properties": {
        "status": {
            "anyOf": [
                {
                    "type": "string"
                },
                {
                    "type": "null"
                }
            ],
            "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."
        },
        "expiries": {
            "anyOf": [
                {
                    "items": {
                        "$ref": "#/components/schemas/ExpiryItem"
                    },
                    "type": "array"
                },
                {
                    "type": "null"
                }
            ],
            "title": "Expiries",
            "description": "Upcoming expiries with DTE and type metadata"
        },
        "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",
    "title": "ExpiriesResponse",
    "description": "Expiries (D) API payload — next expiration dates for a ticker."
}
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')

ExpiriesResponse

Name Type Description
error_code
error_message
expiries Upcoming expiries with DTE and type metadata
generated_at ET ISO 8601 timestamp when this response was generated
metadata
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 Command execution status: completed, failed, etc.
ticker

ExpiryItem

Name Type Description
dte integer Whole days to expiration, counted to 16:00 ET on the expiry date
expiry_date string Expiration date (YYYY-MM-DD)
expiry_type 'Monthly' or 'Quarterly' when applicable; omitted otherwise

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" \
  --header "X-API-Key: $GAMMAEDGE_API_KEY"

See error handling and rate limits for retry guidance.