> ## Documentation Index
> Fetch the complete documentation index at: https://quantura.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# get Option Expiry Horizons

> XNYS calendar projections from last_timestamp, not requested end or today. Daily counts trading sessions; intraday counts projected regular-session bars on the tail grid, including early closes/DST. Extended-hour downloads still receive regular-session guidance with explicit caveat. Weekly/monthly bucket starts may not land on an expiry; landing flags and next grid date are returned. Expiration date is not inferred to be a contract exercise/last-trading deadline. Calendar coverage 2000–2040; no future bar availability guarantee.



## OpenAPI

````yaml /docs/api/openapi.json post /v1/market-data/options/horizons
openapi: 3.1.0
info:
  title: Quantura API
  version: 1.0.0
  description: >-
    Search markets and public datasets, download historical observations, create
    forecasts and inspect screener quantiles.
  contact:
    name: Quantura
    url: https://quantura.studio/contact
  license:
    name: Quantura API Terms
    url: https://quantura.studio/terms
servers:
  - url: https://quantura.studio/api
security:
  - bearerAuth: []
  - clerkOAuth:
      - openid
      - profile
      - email
tags:
  - name: Access
  - name: Forecast
  - name: Screener
  - name: Admin Canvas
  - name: CSV library
  - name: Privacy
  - name: Search
  - name: Download
  - name: Scout
paths:
  /v1/market-data/options/horizons:
    servers:
      - url: https://quantura.studio/api
    post:
      tags:
        - Download
      summary: get Option Expiry Horizons
      description: >-
        XNYS calendar projections from last_timestamp, not requested end or
        today. Daily counts trading sessions; intraday counts projected
        regular-session bars on the tail grid, including early closes/DST.
        Extended-hour downloads still receive regular-session guidance with
        explicit caveat. Weekly/monthly bucket starts may not land on an expiry;
        landing flags and next grid date are returned. Expiration date is not
        inferred to be a contract exercise/last-trading deadline. Calendar
        coverage 2000–2040; no future bar availability guarantee.
      operationId: getOptionExpiryHorizons
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - underlying
                - last_timestamp
                - frequency
              properties:
                underlying:
                  type: string
                  maxLength: 12
                last_timestamp:
                  type: string
                  format: date-time
                frequency:
                  type: string
                  enum:
                    - 1min
                    - 5min
                    - 15min
                    - 30min
                    - 1h
                    - 4h
                    - 1D
                    - 1W-MON
                    - 1MS
                    - 1Min
                    - 5Min
                    - 15Min
                    - 30Min
                    - 1Hour
                    - 4Hour
                    - 1Day
                    - 1Week
                    - 1Month
                    - 1m
                    - 5m
                    - 15m
                    - 30m
                    - 1w
                session:
                  enum:
                    - regular
                    - extended
      responses:
        '200':
          description: Successful response (illustrative example)
          content:
            application/json:
              schema:
                type: object
              example:
                ok: true
                provider: alpaca
                schema_version: option_horizons_v1
                rows: []
        '404':
          description: Invalid request or provider unavailable
          content:
            application/json:
              schema:
                type: object
              example:
                ok: false
                error: event_query_invalid
                message: Choose a provider event and a valid continuation cursor.
        '422':
          description: Invalid request or provider unavailable
          content:
            application/json:
              schema:
                type: object
              example:
                ok: false
                error: event_query_invalid
                message: Choose a provider event and a valid continuation cursor.
        '502':
          description: Invalid request or provider unavailable
          content:
            application/json:
              schema:
                type: object
              example:
                ok: false
                error: event_query_invalid
                message: Choose a provider event and a valid continuation cursor.
        '503':
          description: Invalid request or provider unavailable
          content:
            application/json:
              schema:
                type: object
              example:
                ok: false
                error: event_query_invalid
                message: Choose a provider event and a valid continuation cursor.
      security: []
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: Clerk personal API key or legacy Quantura key
    clerkOAuth:
      type: oauth2
      description: >-
        Clerk authorization code with PKCE S256. Pass
        resource=https://quantura.studio on authorization and token requests.
        Paid Pro, enterprise or verified administrator API access is required.
      flows:
        authorizationCode:
          authorizationUrl: https://clerk.quantura.studio/oauth/authorize
          tokenUrl: https://clerk.quantura.studio/oauth/token
          refreshUrl: https://clerk.quantura.studio/oauth/token
          scopes:
            openid: Identify the Quantura account
            profile: Resolve the account profile
            email: Verify account email
            offline_access: Refresh access after expiry

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.