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

# Trading session phase analysis

> Returns current and recent trading session phases with market breadth stats.

Phase definitions follow Eastern Time trading hours.
Includes daily breadth (advancing/declining/unchanged) and 52-week high/low counts.
Per-phase top movers are computed from 1-min bars within each phase window.
Breadth stock lists (top advancers, decliners, new highs, new lows) are included.



## OpenAPI

````yaml /api/openapi.json get /api/graph/v1/market/session-phases
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/market/session-phases:
    get:
      tags:
        - Market Live
      summary: Trading session phase analysis
      description: >-
        Returns current and recent trading session phases with market breadth
        stats.


        Phase definitions follow Eastern Time trading hours.

        Includes daily breadth (advancing/declining/unchanged) and 52-week
        high/low counts.

        Per-phase top movers are computed from 1-min bars within each phase
        window.

        Breadth stock lists (top advancers, decliners, new highs, new lows) are
        included.
      operationId: get_session_phases_api_graph_v1_market_session_phases_get
      responses:
        '200':
          description: Session phases with breadth
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SessionPhasesResponse'
        '504':
          description: Query timeout
components:
  schemas:
    SessionPhasesResponse:
      properties:
        current_phase:
          type: string
          title: Current Phase
        phases:
          items:
            $ref: '#/components/schemas/app__routes__market_live__SessionPhase'
          type: array
          title: Phases
        daily_breadth:
          $ref: '#/components/schemas/DailyBreadth'
        as_of:
          type: string
          format: date-time
          title: As Of
        source:
          type: string
          title: Source
          default: realtime_sip
      type: object
      required:
        - current_phase
        - phases
        - daily_breadth
        - as_of
      title: SessionPhasesResponse
    app__routes__market_live__SessionPhase:
      properties:
        id:
          type: string
          title: Id
        label:
          type: string
          title: Label
        start:
          type: string
          title: Start
        end:
          type: string
          title: End
        status:
          type: string
          title: Status
        top_movers:
          items:
            $ref: '#/components/schemas/SessionPhaseTopMover'
          type: array
          title: Top Movers
          default: []
        summary:
          anyOf:
            - type: string
            - type: 'null'
          title: Summary
      type: object
      required:
        - id
        - label
        - start
        - end
        - status
      title: SessionPhase
    DailyBreadth:
      properties:
        advancing:
          type: integer
          title: Advancing
          default: 0
        declining:
          type: integer
          title: Declining
          default: 0
        unchanged:
          type: integer
          title: Unchanged
          default: 0
        new_highs:
          type: integer
          title: New Highs
          default: 0
        new_lows:
          type: integer
          title: New Lows
          default: 0
        top_advancers:
          items:
            $ref: '#/components/schemas/BreadthStock'
          type: array
          title: Top Advancers
          default: []
        top_decliners:
          items:
            $ref: '#/components/schemas/BreadthStock'
          type: array
          title: Top Decliners
          default: []
        top_new_highs:
          items:
            $ref: '#/components/schemas/BreadthStock'
          type: array
          title: Top New Highs
          default: []
        top_new_lows:
          items:
            $ref: '#/components/schemas/BreadthStock'
          type: array
          title: Top New Lows
          default: []
      type: object
      title: DailyBreadth
    SessionPhaseTopMover:
      properties:
        symbol:
          type: string
          title: Symbol
        change_pct:
          type: number
          title: Change Pct
      type: object
      required:
        - symbol
        - change_pct
      title: SessionPhaseTopMover
    BreadthStock:
      properties:
        symbol:
          type: string
          title: Symbol
        change_pct:
          type: number
          title: Change Pct
        price:
          anyOf:
            - type: number
            - type: 'null'
          title: Price
      type: object
      required:
        - symbol
        - change_pct
      title: BreadthStock

````