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

# Get PIT Stock Ratings

> [OpenAPI JSON Spec](/docs/output/v1_stocks_ratings_get.json)
**Feature Overview**
Get Point-in-Time (PIT) stock ratings data for a specific symbol within a time range.

**Main Use Cases**
- **Investment Analysis**: Analyze historical stock ratings and scores over time
- **Performance Tracking**: Track rating changes and score trends
- **Risk Assessment**: Evaluate financial health metrics and ratios
- **Portfolio Management**: Make informed decisions based on comprehensive ratings
- **Research & Backtesting**: Historical rating data for quantitative analysis

**Query Parameters & Logic**

**Required Parameters:**
- `symbol`: Stock symbol (e.g., AAPL, TSLA)
- `start_time`: Start timestamp (Unix seconds, UTC)
- `end_time`: End timestamp (Unix seconds, UTC)

**Optional Parameters:**
- `limit`: Maximum number of results (1-1000, default: 50)

**Validation Rules:**
- Symbol is required and must be a valid stock symbol
- start_time must be before end_time
- Limit defaults to 50 if not provided, max 1000

**Response Data Structure**

- `data` ([]PITStockRatingData): Array of PIT stock rating data points

**PITStockRatingData fields:**
- `symbol` (string): Stock symbol
- `date` (string): Rating date (YYYY-MM-DD format)
- `rating` (string): Overall rating (e.g., "A+", "B", "C")
- `overall_score` (int32): Overall composite score
- `discounted_cash_flow_score` (int32): DCF model score
- `return_on_equity_score` (int32): ROE score
- `return_on_assets_score` (int32): ROA score
- `debt_to_equity_score` (int32): Debt-to-Equity ratio score
- `price_to_earnings_score` (int32): P/E ratio score
- `price_to_book_score` (int32): P/B ratio score
- `publish_time` (int64): Data publish timestamp (Unix seconds, UTC)

**Rating Interpretation:**
- Higher overall score indicates better financial health and performance
- Individual metric scores range typically from 0-100
- Rating letters typically: A+, A, A-, B+, B, B-, C+, C, C-, D, F

**Usage Examples**

1. **Get AAPL ratings for last 30 days**: `?symbol=AAPL&start_time=1730678400&end_time=1733356800`
2. **With custom limit**: `?symbol=TSLA&start_time=1730678400&end_time=1733356800&limit=100`
3. **Get maximum data points**: `?symbol=MSFT&start_time=1704067200&end_time=1733356800&limit=1000`

**Important Notes**

- All required parameters must be provided
- Results are ordered by date
- PIT ratings provide point-in-time snapshots of stock performance
- All score fields are always present (not optional)



## OpenAPI

````yaml /api-reference/openapi.json get /v1/stocks/ratings
openapi: 3.0.0
info:
  contact: {}
  description: >-
    Welcome to Arrays!


    Arrays is a unified financial data layer for both financial institutions and
    retail users, delivering comprehensive market data across crypto and equity
    markets. Our datasets cover fundamentals, ETFs, options, crypto, and more.


    Visit [arrays.org](https://arrays.org) to request an API key and start your
    free trial. You can explore our full API offerings in the documentation
    below.


    For any questions regarding APIs or pricing, please contact
    support@arrays.org.
  title: Arrays API
  version: '1.0'
servers:
  - url: https://data-tools.prd.arrays.org/api
security: []
paths:
  /v1/stocks/ratings:
    get:
      tags:
        - Stock
      summary: Get PIT Stock Ratings
      description: >-
        [OpenAPI JSON Spec](/docs/output/v1_stocks_ratings_get.json)

        **Feature Overview**

        Get Point-in-Time (PIT) stock ratings data for a specific symbol within
        a time range.


        **Main Use Cases**

        - **Investment Analysis**: Analyze historical stock ratings and scores
        over time

        - **Performance Tracking**: Track rating changes and score trends

        - **Risk Assessment**: Evaluate financial health metrics and ratios

        - **Portfolio Management**: Make informed decisions based on
        comprehensive ratings

        - **Research & Backtesting**: Historical rating data for quantitative
        analysis


        **Query Parameters & Logic**


        **Required Parameters:**

        - `symbol`: Stock symbol (e.g., AAPL, TSLA)

        - `start_time`: Start timestamp (Unix seconds, UTC)

        - `end_time`: End timestamp (Unix seconds, UTC)


        **Optional Parameters:**

        - `limit`: Maximum number of results (1-1000, default: 50)


        **Validation Rules:**

        - Symbol is required and must be a valid stock symbol

        - start_time must be before end_time

        - Limit defaults to 50 if not provided, max 1000


        **Response Data Structure**


        - `data` ([]PITStockRatingData): Array of PIT stock rating data points


        **PITStockRatingData fields:**

        - `symbol` (string): Stock symbol

        - `date` (string): Rating date (YYYY-MM-DD format)

        - `rating` (string): Overall rating (e.g., "A+", "B", "C")

        - `overall_score` (int32): Overall composite score

        - `discounted_cash_flow_score` (int32): DCF model score

        - `return_on_equity_score` (int32): ROE score

        - `return_on_assets_score` (int32): ROA score

        - `debt_to_equity_score` (int32): Debt-to-Equity ratio score

        - `price_to_earnings_score` (int32): P/E ratio score

        - `price_to_book_score` (int32): P/B ratio score

        - `publish_time` (int64): Data publish timestamp (Unix seconds, UTC)


        **Rating Interpretation:**

        - Higher overall score indicates better financial health and performance

        - Individual metric scores range typically from 0-100

        - Rating letters typically: A+, A, A-, B+, B, B-, C+, C, C-, D, F


        **Usage Examples**


        1. **Get AAPL ratings for last 30 days**:
        `?symbol=AAPL&start_time=1730678400&end_time=1733356800`

        2. **With custom limit**:
        `?symbol=TSLA&start_time=1730678400&end_time=1733356800&limit=100`

        3. **Get maximum data points**:
        `?symbol=MSFT&start_time=1704067200&end_time=1733356800&limit=1000`


        **Important Notes**


        - All required parameters must be provided

        - Results are ordered by date

        - PIT ratings provide point-in-time snapshots of stock performance

        - All score fields are always present (not optional)
      parameters:
        - description: Stock symbol (e.g., AAPL, TSLA)
          in: query
          name: symbol
          required: true
          schema:
            type: string
        - description: Start timestamp (Unix seconds, UTC)
          in: query
          name: start_time
          required: true
          schema:
            type: integer
            format: int64
        - description: End timestamp (Unix seconds, UTC)
          in: query
          name: end_time
          required: true
          schema:
            type: integer
            format: int64
        - description: 'Maximum number of results (1-1000, default: 50)'
          in: query
          name: limit
          schema:
            type: integer
            format: int32
            default: 50
      responses:
        '200':
          description: Successfully returns PIT stock ratings
          content:
            application/json:
              schema:
                allOf:
                  - $ref: '#/components/schemas/model.APIResponse'
                  - properties:
                      data:
                        items:
                          $ref: '#/components/schemas/model.PITStockRatingData'
                        type: array
                    type: object
        '400':
          description: Parameter validation error
          content:
            application/json:
              schema:
                allOf:
                  - $ref: '#/components/schemas/model.APIResponse'
                  - properties:
                      data:
                        $ref: '#/components/schemas/model.APIError'
                    type: object
        '404':
          description: Stock symbol not found
          content:
            application/json:
              schema:
                allOf:
                  - $ref: '#/components/schemas/model.APIResponse'
                  - properties:
                      data:
                        $ref: '#/components/schemas/model.APIError'
                    type: object
        '500':
          description: Internal server error - gRPC service failure
          content:
            application/json:
              schema:
                allOf:
                  - $ref: '#/components/schemas/model.APIResponse'
                  - properties:
                      data:
                        $ref: '#/components/schemas/model.APIError'
                    type: object
      security:
        - ApiKeyAuth: []
components:
  schemas:
    model.APIResponse:
      properties:
        data: {}
        error:
          $ref: '#/components/schemas/model.APIError'
        metadata: {}
        pagination: {}
        request_id:
          type: string
        success:
          type: boolean
      type: object
    model.PITStockRatingData:
      properties:
        date:
          description: Date in YYYY-MM-DD format
          type: string
        debt_to_equity_score:
          description: D/E ratio score
          type: integer
        discounted_cash_flow_score:
          description: DCF score
          type: integer
        overall_score:
          description: Overall score
          type: integer
        price_to_book_score:
          description: P/B ratio score
          type: integer
        price_to_earnings_score:
          description: P/E ratio score
          type: integer
        publish_time:
          description: Unix timestamp (seconds, UTC)
          type: integer
        rating:
          description: Overall rating (e.g., "A+", "B", etc.)
          type: string
        return_on_assets_score:
          description: ROA score
          type: integer
        return_on_equity_score:
          description: ROE score
          type: integer
        symbol:
          description: Stock symbol
          type: string
      type: object
    model.APIError:
      properties:
        code:
          example: RESOURCE_NOT_FOUND
          type: string
        details:
          items:
            $ref: '#/components/schemas/model.APIErrorDetail'
          type: array
        docs_url:
          type: string
        examples:
          items:
            type: string
          type: array
        hint:
          type: string
        message:
          example: The requested resource was not found.
          type: string
        suggestions:
          items:
            type: string
          type: array
      type: object
    model.APIErrorDetail:
      properties:
        field:
          type: string
        got:
          type: string
        reason:
          type: string
      type: object
  securitySchemes:
    ApiKeyAuth:
      description: 'API Key authentication. Example: "your-api-key-here"'
      in: header
      name: X-API-Key
      type: apiKey

````