> ## 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.

# Symbol Scenarios

> The Duddella scenario sheet for one symbol + grain (§6.2).

Returns the CURRENT state of each scenario (one row per scenario_id, most
advanced state on the newest bar wins) filtered to the requested states — armed +
triggered by default, i.e. "what could happen next", which is what the card is
for. Each scenario carries its own §10 ``stats`` block (or a null block plus a
structural ``stats_unavailable`` reason).

``lookback_days`` bounds the SCENARIO scan; ``window_days`` is §10's rolling
STATISTICS window. They are deliberately separate knobs: how far back to look for
an armed setup is not the same question as how much history an expectancy should
average over.



## OpenAPI

````yaml /api/openapi.json get /api/graph/v1/pattern-events/scenarios/{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/pattern-events/scenarios/{symbol}:
    get:
      tags:
        - pattern-events
      summary: Symbol Scenarios
      description: >-
        The Duddella scenario sheet for one symbol + grain (§6.2).


        Returns the CURRENT state of each scenario (one row per scenario_id,
        most

        advanced state on the newest bar wins) filtered to the requested states
        — armed +

        triggered by default, i.e. "what could happen next", which is what the
        card is

        for. Each scenario carries its own §10 ``stats`` block (or a null block
        plus a

        structural ``stats_unavailable`` reason).


        ``lookback_days`` bounds the SCENARIO scan; ``window_days`` is §10's
        rolling

        STATISTICS window. They are deliberately separate knobs: how far back to
        look for

        an armed setup is not the same question as how much history an
        expectancy should

        average over.
      operationId: symbol_scenarios_api_graph_v1_pattern_events_scenarios__symbol__get
      parameters:
        - name: symbol
          in: path
          required: true
          schema:
            type: string
            title: Symbol
        - name: grain
          in: query
          required: false
          schema:
            type: string
            default: 5min
            title: Grain
        - name: state
          in: query
          required: false
          schema:
            type: string
            default: armed,triggered
            title: State
        - name: lookback_days
          in: query
          required: false
          schema:
            type: integer
            maximum: 365
            minimum: 1
            default: 30
            title: Lookback Days
        - name: window_days
          in: query
          required: false
          schema:
            type: integer
            maximum: 1825
            minimum: 1
            default: 120
            title: Window Days
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
                title: >-
                  Response Symbol Scenarios Api Graph V1 Pattern Events
                  Scenarios  Symbol  Get
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    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

````