> ## Documentation Index
> Fetch the complete documentation index at: https://docs.rangler.co/llms.txt
> Use this file to discover all available pages before exploring further.

# Compare NGX company chart series

> Return Core-aligned daily chart values for a primary company and up to three peers.

Requires paid access.



## OpenAPI

````yaml /openapi.json get /v1/companies/{company_ref}/chart/compare
openapi: 3.1.0
info:
  title: Rangler API
  version: 1.0.0
  description: >-
    Customer-facing Rangler API for companies, standardized financials, filings,
    funds, market data, events, and webhooks.
servers:
  - url: https://api.rangler.co
    description: Live
  - url: https://sandbox-api.rangler.co
    description: Sandbox
security: []
tags:
  - name: Analyst estimates
    description: Consensus forecasts, revisions, contributor accuracy, and source evidence.
  - name: Analyst recommendations
    description: Analyst ratings, target-price views, and company recommendation history.
  - name: Calendar
    description: Company events and calendar exports.
  - name: Companies
    description: >-
      Company lookup, issuer details, dividends, daily trades, meeting media,
      and mentions.
  - name: Events
    description: >-
      Read earlier events and check for missed deliveries across the market, a
      company, or a fund.
  - name: Financials
    description: >-
      Standardized financial statements, reported tables, ratios, and links to
      filing sources.
  - name: Filings
    description: Filings, board changes, insider dealings, and extracted filing mentions.
  - name: Funds
    description: Fund directories, disclosures, snapshots, holdings, and performance data.
  - name: Markets
    description: Market directories and regular-session clock data.
  - name: News
    description: Company news developments and company-filtered news search.
paths:
  /v1/companies/{company_ref}/chart/compare:
    get:
      tags:
        - Companies
      summary: Compare NGX company chart series
      description: >-
        Return Core-aligned daily chart values for a primary company and up to
        three peers.


        Requires paid access.
      operationId: get_v1_companies_company_ref_chart_compare
      parameters:
        - name: company_ref
          in: path
          required: true
          schema:
            type: string
            minLength: 1
            maxLength: 64
            description: Primary NGX ticker symbol or Rangler company UUID.
            title: Company Ref
          description: Primary NGX ticker symbol or Rangler company UUID.
        - name: compare
          in: query
          required: false
          schema:
            anyOf:
              - items:
                  type: string
                type: array
              - type: 'null'
            description: >-
              NGX ticker or company UUID to compare. Up to three distinct peers
              are returned.
            title: Compare
          description: >-
            NGX ticker or company UUID to compare. Up to three distinct peers
            are returned.
        - name: period
          in: query
          required: false
          schema:
            enum:
              - 1d
              - 1w
              - 1m
              - 3m
              - ytd
              - 1y
              - all
            type: string
            description: >-
              Primary lookback window used when from is omitted. Older period
              values remain accepted for existing integrations and are listed in
              the price-chart guide.
            default: 1y
            title: Period
          description: >-
            Primary lookback window used when from is omitted. Older period
            values remain accepted for existing integrations and are listed in
            the price-chart guide.
          x-rangler-accepted-older-values:
            - 7d
            - 30d
            - 90d
            - 6m
            - 5y
            - max
        - name: basis
          in: query
          required: false
          schema:
            enum:
              - indexed
              - raw
            type: string
            description: >-
              Indexed performance starts every series at 100; raw requires one
              shared currency.
            default: indexed
            title: Basis
          description: >-
            Indexed performance starts every series at 100; raw requires one
            shared currency.
        - name: from
          in: query
          required: false
          schema:
            anyOf:
              - type: string
                format: date
              - type: 'null'
            description: Inclusive start date. Overrides period when provided.
            title: From
          description: Inclusive start date. Overrides period when provided.
        - name: to
          in: query
          required: false
          schema:
            anyOf:
              - type: string
                format: date
              - type: 'null'
            description: Inclusive end date.
            title: To
          description: Inclusive end date.
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CompanyChartComparisonResponse'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorEnvelope'
              examples:
                default:
                  value:
                    error:
                      type: unauthorized
                      code: unauthorized
                      message: Authentication required.
                      request_id: 28fa6152-7081-492e-8a7e-00beb237b689
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorEnvelope'
              examples:
                default:
                  value:
                    error:
                      type: forbidden
                      code: forbidden
                      message: Paid access is required.
                      request_id: 5c253b3e-778e-4a58-aaf8-07cb21e03563
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorEnvelope'
              examples:
                default:
                  value:
                    error:
                      type: not_found
                      code: not_found
                      message: Company not found
                      request_id: 9f5237bc-7d8c-4a9d-9c1f-fbd4ef236cf9
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorEnvelope'
              examples:
                default:
                  value:
                    error:
                      type: validation_error
                      code: validation_error
                      message: Request validation failed
                      request_id: c5964dca-d290-4465-a3dc-f92d42aa9b17
                      details:
                        - type: missing
                          loc:
                            - query
                            - ticker
                          msg: Field required
                          input: null
        '429':
          description: Too Many Requests
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorEnvelope'
              examples:
                default:
                  value:
                    error:
                      type: rate_limit_exceeded
                      code: rate_limit_exceeded
                      message: Rate limit exceeded
                      request_id: cc4d369a-2c69-4ee2-909e-985ea35d14a9
        '500':
          description: Internal Server Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorEnvelope'
              examples:
                default:
                  value:
                    error:
                      type: internal_server_error
                      code: internal_server_error
                      message: Internal Server Error
                      request_id: 70b63aba-b8a3-41c2-bb0c-fbe67d84d37d
      security:
        - RanglerApiKey: []
components:
  schemas:
    CompanyChartComparisonResponse:
      properties:
        period:
          anyOf:
            - type: string
              enum:
                - 1d
                - 1w
                - 1m
                - 3m
                - ytd
                - 1y
                - all
                - 7d
                - 30d
                - 90d
                - 6m
                - 5y
                - max
            - type: 'null'
          title: Period
        basis:
          type: string
          enum:
            - indexed
            - raw
          title: Basis
        base_value:
          anyOf:
            - type: number
            - type: 'null'
          title: Base Value
          description: >-
            Starting value used for indexed comparison. Null for raw-price
            comparison.
        currency:
          anyOf:
            - type: string
            - type: 'null'
          title: Currency
          description: >-
            Shared price currency for raw comparison. Null for indexed
            comparison.
        requested_start_date:
          anyOf:
            - type: string
              format: date
            - type: 'null'
          title: Requested Start Date
        requested_end_date:
          anyOf:
            - type: string
              format: date
            - type: 'null'
          title: Requested End Date
        comparison_start_date:
          anyOf:
            - type: string
              format: date
            - type: 'null'
          title: Comparison Start Date
          description: >-
            First date in the aligned comparison window, after every non-empty
            series has begun.
        comparison_end_date:
          anyOf:
            - type: string
              format: date
            - type: 'null'
          title: Comparison End Date
          description: >-
            Last date represented by at least one series in the aligned
            comparison window.
        count:
          type: integer
          title: Count
        series:
          items:
            $ref: '#/components/schemas/CompanyChartComparisonSeries'
          type: array
          title: Series
        data:
          items:
            $ref: '#/components/schemas/CompanyChartComparisonPoint'
          type: array
          title: Data
      type: object
      required:
        - basis
        - count
        - series
        - data
      title: CompanyChartComparisonResponse
    ErrorEnvelope:
      type: object
      required:
        - error
      properties:
        error:
          $ref: '#/components/schemas/ErrorObject'
    CompanyChartComparisonSeries:
      properties:
        company_id:
          type: string
          format: uuid
          title: Company Id
        symbol:
          type: string
          title: Symbol
        company_name:
          type: string
          title: Company Name
        exchange:
          anyOf:
            - type: string
            - type: 'null'
          title: Exchange
        currency:
          anyOf:
            - type: string
            - type: 'null'
          title: Currency
        start_date:
          anyOf:
            - type: string
              format: date
            - type: 'null'
          title: Start Date
        end_date:
          anyOf:
            - type: string
              format: date
            - type: 'null'
          title: End Date
        start_close:
          anyOf:
            - type: number
            - type: 'null'
          title: Start Close
        end_close:
          anyOf:
            - type: number
            - type: 'null'
          title: End Close
        percentage_change:
          anyOf:
            - type: number
            - type: 'null'
          title: Percentage Change
          description: >-
            Fractional change from start_close to the final returned close; 0.05
            means 5%.
      type: object
      required:
        - company_id
        - symbol
        - company_name
      title: CompanyChartComparisonSeries
    CompanyChartComparisonPoint:
      properties:
        date:
          type: string
          format: date
          title: Date
        values:
          items:
            anyOf:
              - type: number
              - type: 'null'
          type: array
          title: Values
          description: >-
            Values in the same order as the response's series array; null means
            no observation on this date.
      type: object
      required:
        - date
        - values
      title: CompanyChartComparisonPoint
    ErrorObject:
      type: object
      required:
        - type
        - code
        - message
        - request_id
      properties:
        type:
          type: string
        code:
          type: string
        message:
          type: string
        request_id:
          type: string
        details:
          anyOf:
            - additionalProperties: true
              type: object
            - type: array
              items:
                additionalProperties: true
                type: object
            - type: 'null'
  securitySchemes:
    RanglerApiKey:
      type: apiKey
      in: header
      name: X-API-Key

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.