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

# Get NR7 count for a stock

> Get the number of NR7 days for a stock in the lookback period.

This is a convenience endpoint that directly returns the count.

## Query Parameters

- **days**: Lookback period (default: 30)

## Performance Target

<100ms response time.



## OpenAPI

````yaml /api/openapi.json get /api/graph/v1/stocks/{symbol}/compression/nr7-count
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/stocks/{symbol}/compression/nr7-count:
    get:
      tags:
        - Compression
      summary: Get NR7 count for a stock
      description: |-
        Get the number of NR7 days for a stock in the lookback period.

        This is a convenience endpoint that directly returns the count.

        ## Query Parameters

        - **days**: Lookback period (default: 30)

        ## Performance Target

        <100ms response time.
      operationId: get_nr7_count_api_graph_v1_stocks__symbol__compression_nr7_count_get
      parameters:
        - name: symbol
          in: path
          required: true
          schema:
            type: string
            title: Symbol
        - name: days
          in: query
          required: false
          schema:
            type: integer
            maximum: 365
            minimum: 1
            title: Days
            description: Lookback period in days
            default: 30
          description: Lookback period in days
      responses:
        '200':
          description: NR7 count
          content:
            application/json:
              schema:
                type: integer
                title: >-
                  Response Get Nr7 Count Api Graph V1 Stocks  Symbol 
                  Compression Nr7 Count 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

````