> ## 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 peer comparison metrics

> Compare a symbol's TTM metrics against its sector peers.

Uses FMP peers service to find related stocks, then fetches
TTM data for each peer from financial_statements_ttm.



## OpenAPI

````yaml /api/openapi.json get /api/graph/v1/research/{symbol}/peers
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/research/{symbol}/peers:
    get:
      tags:
        - Research
      summary: Get peer comparison metrics
      description: |-
        Compare a symbol's TTM metrics against its sector peers.

        Uses FMP peers service to find related stocks, then fetches
        TTM data for each peer from financial_statements_ttm.
      operationId: get_peer_comparison_api_graph_v1_research__symbol__peers_get
      parameters:
        - name: symbol
          in: path
          required: true
          schema:
            type: string
            title: Symbol
        - name: metrics
          in: query
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            description: 'Comma-separated metric keys to compare (default: standard set)'
            title: Metrics
          description: 'Comma-separated metric keys to compare (default: standard set)'
        - name: limit
          in: query
          required: false
          schema:
            type: integer
            maximum: 20
            minimum: 1
            default: 10
            title: Limit
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PeerComparisonResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    PeerComparisonResponse:
      properties:
        target:
          $ref: '#/components/schemas/PeerComparisonEntry'
        peers:
          items:
            $ref: '#/components/schemas/PeerComparisonEntry'
          type: array
          title: Peers
        metrics_requested:
          items:
            type: string
          type: array
          title: Metrics Requested
      type: object
      required:
        - target
        - peers
        - metrics_requested
      title: PeerComparisonResponse
      description: Response for /research/{symbol}/peers endpoint.
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    PeerComparisonEntry:
      properties:
        symbol:
          type: string
          title: Symbol
        company_name:
          anyOf:
            - type: string
            - type: 'null'
          title: Company Name
        metrics:
          additionalProperties: true
          type: object
          title: Metrics
          description: Flattened TTM metrics for comparison (e.g. gross_margin, roe)
      type: object
      required:
        - symbol
      title: PeerComparisonEntry
      description: A single peer's comparison metrics.
    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

````