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

# Market attribution — why is the index moving

> Returns intraday sector ETF returns as a proxy for sector contribution
to SPY movement. Also returns top 5 individual stock gainers and losers.

Sector ETFs: XLK, XLF, XLV, XLE, XLI, XLP, XLY, XLB, XLU, XLRE, XLC.
Only includes ETFs with available intraday data.



## OpenAPI

````yaml /api/openapi.json get /api/graph/v1/market/attribution
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/attribution:
    get:
      tags:
        - Market Live
      summary: Market attribution — why is the index moving
      description: |-
        Returns intraday sector ETF returns as a proxy for sector contribution
        to SPY movement. Also returns top 5 individual stock gainers and losers.

        Sector ETFs: XLK, XLF, XLV, XLE, XLI, XLP, XLY, XLB, XLU, XLRE, XLC.
        Only includes ETFs with available intraday data.
      operationId: get_attribution_api_graph_v1_market_attribution_get
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AttributionResponse'
components:
  schemas:
    AttributionResponse:
      properties:
        index_symbol:
          type: string
          title: Index Symbol
        index_change_pct:
          anyOf:
            - type: number
            - type: 'null'
          title: Index Change Pct
        sectors:
          items:
            $ref: '#/components/schemas/SectorContribution'
          type: array
          title: Sectors
        top_gainers:
          items:
            $ref: '#/components/schemas/TopMover'
          type: array
          title: Top Gainers
        top_losers:
          items:
            $ref: '#/components/schemas/TopMover'
          type: array
          title: Top Losers
        headline:
          type: string
          title: Headline
        cross_asset:
          items:
            $ref: '#/components/schemas/CrossAssetContext'
          type: array
          title: Cross Asset
          default: []
        breadth:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          title: Breadth
        historical_context:
          items:
            $ref: '#/components/schemas/HistoricalContext'
          type: array
          title: Historical Context
          default: []
        as_of:
          type: string
          format: date-time
          title: As Of
        source:
          type: string
          title: Source
          default: realtime_sip
      type: object
      required:
        - index_symbol
        - sectors
        - top_gainers
        - top_losers
        - headline
        - as_of
      title: AttributionResponse
      description: Market attribution — why is the index moving.
    SectorContribution:
      properties:
        etf:
          type: string
          title: Etf
        sector:
          type: string
          title: Sector
        change_pct:
          type: number
          title: Change Pct
        open_price:
          anyOf:
            - type: number
            - type: 'null'
          title: Open Price
        current_price:
          anyOf:
            - type: number
            - type: 'null'
          title: Current Price
      type: object
      required:
        - etf
        - sector
        - change_pct
      title: SectorContribution
      description: One sector ETF's intraday performance.
    TopMover:
      properties:
        symbol:
          type: string
          title: Symbol
        change_pct:
          type: number
          title: Change Pct
        price:
          anyOf:
            - type: number
            - type: 'null'
          title: Price
        direction:
          type: string
          title: Direction
          default: flat
      type: object
      required:
        - symbol
        - change_pct
      title: TopMover
      description: A significant individual stock mover.
    CrossAssetContext:
      properties:
        symbol:
          type: string
          title: Symbol
        name:
          type: string
          title: Name
        change_pct:
          anyOf:
            - type: number
            - type: 'null'
          title: Change Pct
        price:
          anyOf:
            - type: number
            - type: 'null'
          title: Price
      type: object
      required:
        - symbol
        - name
      title: CrossAssetContext
      description: Cross-asset snapshot for macro regime context.
    HistoricalContext:
      properties:
        condition_key:
          type: string
          title: Condition Key
        display_text:
          type: string
          title: Display Text
        sample_size:
          type: integer
          title: Sample Size
        hit_rate:
          type: number
          title: Hit Rate
        avg_return:
          type: number
          title: Avg Return
        confidence_tier:
          type: string
          title: Confidence Tier
        horizon:
          type: string
          title: Horizon
      type: object
      required:
        - condition_key
        - display_text
        - sample_size
        - hit_rate
        - avg_return
        - confidence_tier
        - horizon
      title: HistoricalContext
      description: Pre-computed conditional stat for a dashboard signal.

````