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

# Get options chain for a symbol and expiration

> Return the call/put grid for a given symbol and expiration date.

If no `expiration` query parameter is provided the nearest available
expiration is used automatically.

## Performance Target

<400ms response time.



## OpenAPI

````yaml /api/openapi.json get /api/graph/v1/options/{symbol}/chain
openapi: 3.1.0
info:
  title: Sequency Graph API
  description: >

    # Sequency Graph-Native Trading API


    Graph-native API for trading intelligence, built on FalkorDB.


    ## Features


    - **Screener**: Filter stocks using graph-native queries with relationship
    expansion

    - **Stock Detail**: Complete stock context with all relationships

    - **Confluence Scoring**: Setup quality assessment with weighted components

    - **Strategy Matching**: Find matching options strategies via graph
    traversal

    - **Market Context**: Current market-wide context for trading decisions


    ## Data Sources


    All data is sourced from the FalkorDB knowledge graph, populated by:

    - Pattern detector (Go) - Technical indicators, patterns

    - Graph sync service - Levels, volume profiles, news, day classification
  version: 1.0.0
servers: []
security: []
paths:
  /api/graph/v1/options/{symbol}/chain:
    get:
      tags:
        - Options Chain
      summary: Get options chain for a symbol and expiration
      description: |-
        Return the call/put grid for a given symbol and expiration date.

        If no `expiration` query parameter is provided the nearest available
        expiration is used automatically.

        ## Performance Target

        <400ms response time.
      operationId: get_options_chain_api_graph_v1_options__symbol__chain_get
      parameters:
        - name: symbol
          in: path
          required: true
          schema:
            type: string
            title: Symbol
        - name: expiration
          in: query
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            description: >-
              Expiration date in YYYY-MM-DD format. Defaults to nearest
              expiration.
            title: Expiration
          description: >-
            Expiration date in YYYY-MM-DD format. Defaults to nearest
            expiration.
      responses:
        '200':
          description: Options chain
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/OptionsChainResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
        '504':
          description: Query timeout
components:
  schemas:
    OptionsChainResponse:
      properties:
        symbol:
          type: string
          title: Symbol
        underlying_price:
          anyOf:
            - type: number
            - type: 'null'
          title: Underlying Price
        source:
          type: string
          title: Source
          default: realtime_sip
        atm_strike:
          anyOf:
            - type: number
            - type: 'null'
          title: Atm Strike
        selected_expiration:
          anyOf:
            - type: string
            - type: 'null'
          title: Selected Expiration
        available_expirations:
          items:
            type: string
          type: array
          title: Available Expirations
          default: []
        chain:
          items:
            $ref: '#/components/schemas/ChainStrike'
          type: array
          title: Chain
          default: []
        summary:
          $ref: '#/components/schemas/ChainSummary'
        updated_at:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: Updated At
      type: object
      required:
        - symbol
      title: OptionsChainResponse
      description: Full options chain response for a symbol and expiration.
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ChainStrike:
      properties:
        strike:
          type: number
          title: Strike
        call:
          anyOf:
            - $ref: '#/components/schemas/ChainContract'
            - type: 'null'
        put:
          anyOf:
            - $ref: '#/components/schemas/ChainContract'
            - type: 'null'
      type: object
      required:
        - strike
      title: ChainStrike
      description: A strike row pairing call and put contracts.
    ChainSummary:
      properties:
        call_volume:
          type: integer
          title: Call Volume
          default: 0
        put_volume:
          type: integer
          title: Put Volume
          default: 0
        call_oi:
          type: integer
          title: Call Oi
          default: 0
        put_oi:
          type: integer
          title: Put Oi
          default: 0
        pc_volume_ratio:
          anyOf:
            - type: number
            - type: 'null'
          title: Pc Volume Ratio
        pc_oi_ratio:
          anyOf:
            - type: number
            - type: 'null'
          title: Pc Oi Ratio
        max_pain:
          anyOf:
            - type: number
            - type: 'null'
          title: Max Pain
        total_strikes:
          type: integer
          title: Total Strikes
          default: 0
      type: object
      title: ChainSummary
      description: Aggregate statistics for the options chain.
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
    ChainContract:
      properties:
        contract_symbol:
          type: string
          title: Contract Symbol
        strike_price:
          type: number
          title: Strike Price
        option_type:
          type: string
          title: Option Type
        bid:
          anyOf:
            - type: number
            - type: 'null'
          title: Bid
        ask:
          anyOf:
            - type: number
            - type: 'null'
          title: Ask
        last_price:
          anyOf:
            - type: number
            - type: 'null'
          title: Last Price
        volume:
          type: integer
          title: Volume
          default: 0
        open_interest:
          type: integer
          title: Open Interest
          default: 0
        delta:
          anyOf:
            - type: number
            - type: 'null'
          title: Delta
        gamma:
          anyOf:
            - type: number
            - type: 'null'
          title: Gamma
        theta:
          anyOf:
            - type: number
            - type: 'null'
          title: Theta
        vega:
          anyOf:
            - type: number
            - type: 'null'
          title: Vega
        implied_volatility:
          anyOf:
            - type: number
            - type: 'null'
          title: Implied Volatility
        bid_size:
          anyOf:
            - type: integer
            - type: 'null'
          title: Bid Size
        ask_size:
          anyOf:
            - type: integer
            - type: 'null'
          title: Ask Size
        in_the_money:
          type: boolean
          title: In The Money
          default: false
        time:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: Time
      type: object
      required:
        - contract_symbol
        - strike_price
        - option_type
      title: ChainContract
      description: A single options contract within the chain.

````