> ## 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 full options context for a symbol

> Get complete options context including confluence score, IV surface,
flow signals, strategy scores, and quality gates.

Combines data from:
- FalkorDB graph vertex (options properties)
- `iv_surface_daily` TimescaleDB hypertable (latest surface)
- `options_flow_signals` TimescaleDB hypertable (recent flow)

## Performance Target

<300ms response time.



## OpenAPI

````yaml /api/openapi.json get /api/graph/v1/options/{symbol}
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}:
    get:
      tags:
        - Options Screener
      summary: Get full options context for a symbol
      description: |-
        Get complete options context including confluence score, IV surface,
        flow signals, strategy scores, and quality gates.

        Combines data from:
        - FalkorDB graph vertex (options properties)
        - `iv_surface_daily` TimescaleDB hypertable (latest surface)
        - `options_flow_signals` TimescaleDB hypertable (recent flow)

        ## Performance Target

        <300ms response time.
      operationId: get_options_context_api_graph_v1_options__symbol__get
      parameters:
        - name: symbol
          in: path
          required: true
          schema:
            type: string
            title: Symbol
        - name: include_contract
          in: query
          required: false
          schema:
            type: boolean
            description: Include recommended contract for best strategy (adds ~200ms)
            default: false
            title: Include Contract
          description: Include recommended contract for best strategy (adds ~200ms)
      responses:
        '200':
          description: Options context
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/OptionsContext-Output'
        '404':
          description: Stock not found
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
        '504':
          description: Query timeout
components:
  schemas:
    OptionsContext-Output:
      properties:
        symbol:
          type: string
          title: Symbol
        last_price:
          anyOf:
            - type: number
            - type: 'null'
          title: Last Price
        source:
          type: string
          title: Source
          default: realtime_sip
        options_confluence_score:
          anyOf:
            - type: number
            - type: 'null'
          title: Options Confluence Score
          description: Standalone options confluence score (0-100)
        best_options_strategy:
          anyOf:
            - type: string
            - type: 'null'
          title: Best Options Strategy
          description: Best strategy recommendation
        strategy_scores:
          additionalProperties:
            type: number
          type: object
          title: Strategy Scores
          description: Per-strategy viability scores (0-100)
        strategy_metadata:
          anyOf:
            - additionalProperties:
                $ref: '#/components/schemas/StrategyMetadata'
              type: object
            - type: 'null'
          title: Strategy Metadata
          description: Static parameters for scored strategies
        recommended_contract:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          title: Recommended Contract
          description: Recommended contract for best strategy
        iv_percentile:
          anyOf:
            - type: number
            - type: 'null'
          title: Iv Percentile
        iv_rank:
          anyOf:
            - type: number
            - type: 'null'
          title: Iv Rank
        iv_skew:
          anyOf:
            - type: number
            - type: 'null'
          title: Iv Skew
        put_call_ratio:
          anyOf:
            - type: number
            - type: 'null'
          title: Put Call Ratio
        chain_total_oi:
          anyOf:
            - type: integer
            - type: 'null'
          title: Chain Total Oi
        chain_volume_1d:
          anyOf:
            - type: integer
            - type: 'null'
          title: Chain Volume 1D
        unusual_activity:
          type: boolean
          title: Unusual Activity
          default: false
        pricing_edge_bull:
          anyOf:
            - type: number
            - type: 'null'
          title: Pricing Edge Bull
        pricing_edge_bear:
          anyOf:
            - type: number
            - type: 'null'
          title: Pricing Edge Bear
        greek_alignment_bull:
          anyOf:
            - type: number
            - type: 'null'
          title: Greek Alignment Bull
        greek_alignment_bear:
          anyOf:
            - type: number
            - type: 'null'
          title: Greek Alignment Bear
        theta_drag_15d:
          anyOf:
            - type: number
            - type: 'null'
          title: Theta Drag 15D
        bullish_confluence:
          anyOf:
            - type: number
            - type: 'null'
          title: Bullish Confluence
        bearish_confluence:
          anyOf:
            - type: number
            - type: 'null'
          title: Bearish Confluence
        net_confluence:
          anyOf:
            - type: number
            - type: 'null'
          title: Net Confluence
        directional_bias:
          anyOf:
            - type: string
            - type: 'null'
          title: Directional Bias
        iv_surface:
          anyOf:
            - $ref: '#/components/schemas/IVSurfaceSnapshot'
            - type: 'null'
        flow_signals:
          items:
            $ref: '#/components/schemas/FlowSignalSummary'
          type: array
          title: Flow Signals
        quality_gates:
          anyOf:
            - $ref: '#/components/schemas/OptionsQualityGates'
            - type: 'null'
        updated_at:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: Updated At
      type: object
      required:
        - symbol
      title: OptionsContext
      description: Full options context for a symbol.
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    StrategyMetadata:
      properties:
        direction:
          type: string
          title: Direction
        delta_target:
          type: number
          title: Delta Target
        min_dte:
          type: integer
          title: Min Dte
        max_dte:
          type: integer
          title: Max Dte
      type: object
      required:
        - direction
        - delta_target
        - min_dte
        - max_dte
      title: StrategyMetadata
      description: Static parameters for an options strategy (mirrors Go strategyDef).
    IVSurfaceSnapshot:
      properties:
        time:
          type: string
          format: date-time
          title: Time
        atm_iv:
          anyOf:
            - type: number
            - type: 'null'
          title: Atm Iv
        atm_iv_change:
          anyOf:
            - type: number
            - type: 'null'
          title: Atm Iv Change
        iv_7d:
          anyOf:
            - type: number
            - type: 'null'
          title: Iv 7D
        iv_14d:
          anyOf:
            - type: number
            - type: 'null'
          title: Iv 14D
        iv_21d:
          anyOf:
            - type: number
            - type: 'null'
          title: Iv 21D
        iv_30d:
          anyOf:
            - type: number
            - type: 'null'
          title: Iv 30D
        iv_45d:
          anyOf:
            - type: number
            - type: 'null'
          title: Iv 45D
        term_slope:
          anyOf:
            - type: number
            - type: 'null'
          title: Term Slope
        term_structure_shape:
          anyOf:
            - type: string
            - type: 'null'
          title: Term Structure Shape
        skew_ratio:
          anyOf:
            - type: number
            - type: 'null'
          title: Skew Ratio
        skew_percentile:
          anyOf:
            - type: number
            - type: 'null'
          title: Skew Percentile
        iv_percentile_30d:
          anyOf:
            - type: number
            - type: 'null'
          title: Iv Percentile 30D
        iv_percentile_60d:
          anyOf:
            - type: number
            - type: 'null'
          title: Iv Percentile 60D
        iv_percentile_90d:
          anyOf:
            - type: number
            - type: 'null'
          title: Iv Percentile 90D
        realized_vol_20d:
          anyOf:
            - type: number
            - type: 'null'
          title: Realized Vol 20D
        iv_rv_ratio:
          anyOf:
            - type: number
            - type: 'null'
          title: Iv Rv Ratio
        data_quality:
          anyOf:
            - type: number
            - type: 'null'
          title: Data Quality
      type: object
      required:
        - time
      title: IVSurfaceSnapshot
      description: IV surface data for a single day.
    FlowSignalSummary:
      properties:
        time:
          type: string
          format: date-time
          title: Time
        signal_type:
          type: string
          title: Signal Type
          description: unusual_volume, pc_shift, premium_flow
        direction:
          type: string
          title: Direction
          description: bullish, bearish, neutral
        strength:
          type: number
          maximum: 100
          minimum: 0
          title: Strength
          description: Signal strength (0-100)
        total_volume:
          anyOf:
            - type: integer
            - type: 'null'
          title: Total Volume
        volume_vs_avg:
          anyOf:
            - type: number
            - type: 'null'
          title: Volume Vs Avg
        net_premium:
          anyOf:
            - type: number
            - type: 'null'
          title: Net Premium
      type: object
      required:
        - time
        - signal_type
        - direction
        - strength
      title: FlowSignalSummary
      description: Summary of a detected options flow signal.
    OptionsQualityGates:
      properties:
        spread_quality:
          anyOf:
            - type: string
            - type: 'null'
          title: Spread Quality
          description: 'pass/fail: bid-ask spread < 10% of mid'
        minimum_oi:
          anyOf:
            - type: string
            - type: 'null'
          title: Minimum Oi
          description: 'pass/fail: OI >= 100 contracts'
        iv_floor:
          anyOf:
            - type: string
            - type: 'null'
          title: Iv Floor
          description: 'pass/fail: IV percentile > 10'
        theta_drag:
          anyOf:
            - type: string
            - type: 'null'
          title: Theta Drag
          description: 'pass/fail: 15-day theta < 15% of premium'
      type: object
      title: OptionsQualityGates
      description: Quality gate results for options trading.
    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

````