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

# Intraday Relative Rotation Graph

> Sector ETF relative strength vs SPY at each intraday phase boundary.



## OpenAPI

````yaml /api/openapi.json get /api/graph/v1/market/rrg
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/rrg:
    get:
      tags:
        - Market Live
      summary: Intraday Relative Rotation Graph
      description: Sector ETF relative strength vs SPY at each intraday phase boundary.
      operationId: get_rrg_api_graph_v1_market_rrg_get
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RRGResponse'
components:
  schemas:
    RRGResponse:
      properties:
        trade_date:
          type: string
          title: Trade Date
        prior_close_date:
          type: string
          title: Prior Close Date
        phases_completed:
          type: integer
          title: Phases Completed
        current_phase:
          anyOf:
            - type: string
            - type: 'null'
          title: Current Phase
        sectors:
          items:
            $ref: '#/components/schemas/RRGSector'
          type: array
          title: Sectors
        breadth:
          anyOf:
            - $ref: '#/components/schemas/RRGBreadth'
            - type: 'null'
        top_movers:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          title: Top Movers
        source:
          type: string
          title: Source
          default: realtime_sip
      type: object
      required:
        - trade_date
        - prior_close_date
        - phases_completed
        - current_phase
        - sectors
      title: RRGResponse
    RRGSector:
      properties:
        sector:
          type: string
          title: Sector
        etf:
          type: string
          title: Etf
        day_change_pct:
          type: number
          title: Day Change Pct
        trail:
          items:
            $ref: '#/components/schemas/RRGTrailPoint'
          type: array
          title: Trail
        live:
          anyOf:
            - $ref: '#/components/schemas/RRGLivePoint'
            - type: 'null'
        tooltip:
          anyOf:
            - $ref: '#/components/schemas/RRGSectorTooltip'
            - type: 'null'
      type: object
      required:
        - sector
        - etf
        - day_change_pct
        - trail
      title: RRGSector
    RRGBreadth:
      properties:
        advancing:
          type: integer
          title: Advancing
        declining:
          type: integer
          title: Declining
        total:
          type: integer
          title: Total
        percentile:
          anyOf:
            - type: integer
            - type: 'null'
          title: Percentile
      type: object
      required:
        - advancing
        - declining
        - total
      title: RRGBreadth
    RRGTrailPoint:
      properties:
        phase:
          type: string
          title: Phase
        label:
          type: string
          title: Label
        rs_ratio:
          type: number
          title: Rs Ratio
        rs_momentum:
          type: number
          title: Rs Momentum
        breadth_pct:
          anyOf:
            - type: number
            - type: 'null'
          title: Breadth Pct
        timestamp:
          type: string
          format: date-time
          title: Timestamp
      type: object
      required:
        - phase
        - label
        - rs_ratio
        - rs_momentum
        - timestamp
      title: RRGTrailPoint
    RRGLivePoint:
      properties:
        rs_ratio:
          type: number
          title: Rs Ratio
        rs_momentum:
          type: number
          title: Rs Momentum
        breadth_pct:
          anyOf:
            - type: number
            - type: 'null'
          title: Breadth Pct
        timestamp:
          type: string
          format: date-time
          title: Timestamp
      type: object
      required:
        - rs_ratio
        - rs_momentum
        - timestamp
      title: RRGLivePoint
    RRGSectorTooltip:
      properties:
        conviction_avg:
          anyOf:
            - type: number
            - type: 'null'
          title: Conviction Avg
        conviction_weight:
          type: string
          title: Conviction Weight
          default: equal
        top_contributor:
          anyOf:
            - $ref: '#/components/schemas/RRGTopContributor'
            - type: 'null'
        leaders:
          items:
            $ref: '#/components/schemas/RRGLeader'
          type: array
          title: Leaders
          default: []
        laggards:
          items:
            $ref: '#/components/schemas/RRGLeader'
          type: array
          title: Laggards
          default: []
      type: object
      title: RRGSectorTooltip
    RRGTopContributor:
      properties:
        symbol:
          type: string
          title: Symbol
        impact_pct:
          type: number
          title: Impact Pct
        weight_pct:
          anyOf:
            - type: number
            - type: 'null'
          title: Weight Pct
      type: object
      required:
        - symbol
        - impact_pct
      title: RRGTopContributor
    RRGLeader:
      properties:
        symbol:
          type: string
          title: Symbol
        composite_score:
          type: number
          title: Composite Score
        signal:
          type: string
          title: Signal
      type: object
      required:
        - symbol
        - composite_score
        - signal
      title: RRGLeader

````