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

# Stock Analysis

> Get AI-generated per-phase analysis for a stock hover card.

Returns phase-aware analysis using Sonnet 4.6, with sentiment and technical
summaries for each completed and active trading day phase, plus thesis
invalidation. Results are cached per (symbol, phase) with a 10-minute TTL.



## OpenAPI

````yaml /api/openapi.json get /api/graph/v1/analysis/stock/{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/analysis/stock/{symbol}:
    get:
      tags:
        - Analysis
      summary: Stock Analysis
      description: >-
        Get AI-generated per-phase analysis for a stock hover card.


        Returns phase-aware analysis using Sonnet 4.6, with sentiment and
        technical

        summaries for each completed and active trading day phase, plus thesis

        invalidation. Results are cached per (symbol, phase) with a 10-minute
        TTL.
      operationId: stock_analysis_api_graph_v1_analysis_stock__symbol__get
      parameters:
        - name: symbol
          in: path
          required: true
          schema:
            type: string
            title: Symbol
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/StockAnalysisResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    StockAnalysisResponse:
      properties:
        symbol:
          type: string
          title: Symbol
        company_name:
          anyOf:
            - type: string
            - type: 'null'
          title: Company Name
        current_phase:
          type: string
          title: Current Phase
        phases:
          items:
            $ref: '#/components/schemas/PhaseAnalysis'
          type: array
          title: Phases
        market_narrative:
          type: string
          title: Market Narrative
        what_would_change:
          type: string
          title: What Would Change
        generated_at:
          type: string
          title: Generated At
        data_sources:
          items:
            type: string
          type: array
          title: Data Sources
        model_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Model Id
      type: object
      required:
        - symbol
        - current_phase
        - phases
        - market_narrative
        - what_would_change
        - generated_at
        - data_sources
      title: StockAnalysisResponse
      description: AI-generated per-phase analysis for a stock hover card.
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    PhaseAnalysis:
      properties:
        phase:
          type: string
          title: Phase
        phase_label:
          type: string
          title: Phase Label
        status:
          type: string
          enum:
            - completed
            - active
            - upcoming
          title: Status
        sentiment_summary:
          anyOf:
            - type: string
            - type: 'null'
          title: Sentiment Summary
        technical_summary:
          anyOf:
            - type: string
            - type: 'null'
          title: Technical Summary
        key_levels:
          anyOf:
            - items:
                type: string
              type: array
            - type: 'null'
          title: Key Levels
      type: object
      required:
        - phase
        - phase_label
        - status
      title: PhaseAnalysis
      description: AI-generated analysis for a single trading day phase.
    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

````