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

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

**Main Use Cases**
- **Corporate Action Analysis**: Track historical stock split events
- **Price Adjustment**: Use split data for historical price adjustments
- **Investment Research**: Study split patterns and their market impact
- **Backtesting**: Historical split data for quantitative analysis
- **Portfolio Management**: Track corporate actions affecting holdings

**Query Parameters & Logic**

**Required Parameters:**
- `symbol`: Stock symbol (e.g., AAPL, TSLA, NVDA)
- `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` ([]PITStockSplitData): Array of PIT stock split data points

**PITStockSplitData fields:**
- `symbol` (string): Stock symbol
- `date` (string): Split date (YYYY-MM-DD)
- `numerator` (float64): Split numerator (e.g., 2.0 for 2-for-1 split)
- `denominator` (float64): Split denominator (e.g., 1.0 for 2-for-1 split)
- `observed_at` (int64): Ingestion timestamp (when this split row was first recorded), Unix seconds, UTC

**Stock Split Explanation:**
- **2-for-1 Split**: numerator=2, denominator=1 (shareholders receive 2 shares for each 1 held)
- **3-for-2 Split**: numerator=3, denominator=2 (shareholders receive 3 shares for each 2 held)
- **Reverse Split (1-for-5)**: numerator=1, denominator=5 (consolidation, 5 shares become 1)
- **Split Ratio**: numerator/denominator (e.g., 2.0 means stock doubles in quantity, halves in price)

**Usage Examples**

1. **Get AAPL splits for 2024**: `?symbol=AAPL&start_time=1704067200&end_time=1735689600`
2. **With custom limit**: `?symbol=TSLA&start_time=1704067200&end_time=1735689600&limit=100`
3. **Get maximum data points**: `?symbol=NVDA&start_time=1640995200&end_time=1735689600&limit=1000`

**Important Notes**

- All required parameters must be provided
- Results are ordered by date (typically descending)
- PIT splits provide point-in-time snapshots as they were known historically
- Split date is the effective date of the split
- Use split ratio for historical price adjustments: adjusted_price = price * (denominator / numerator)



## OpenAPI

````yaml /api-reference/openapi.json get /v1/stocks/splits
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/splits:
    get:
      tags:
        - Stock
      summary: Get PIT Stock Splits
      description: >-
        [OpenAPI JSON Spec](/docs/output/v1_stocks_splits_get.json)

        **Feature Overview**

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


        **Main Use Cases**

        - **Corporate Action Analysis**: Track historical stock split events

        - **Price Adjustment**: Use split data for historical price adjustments

        - **Investment Research**: Study split patterns and their market impact

        - **Backtesting**: Historical split data for quantitative analysis

        - **Portfolio Management**: Track corporate actions affecting holdings


        **Query Parameters & Logic**


        **Required Parameters:**

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

        - `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` ([]PITStockSplitData): Array of PIT stock split data points


        **PITStockSplitData fields:**

        - `symbol` (string): Stock symbol

        - `date` (string): Split date (YYYY-MM-DD)

        - `numerator` (float64): Split numerator (e.g., 2.0 for 2-for-1 split)

        - `denominator` (float64): Split denominator (e.g., 1.0 for 2-for-1
        split)

        - `observed_at` (int64): Ingestion timestamp (when this split row was
        first recorded), Unix seconds, UTC


        **Stock Split Explanation:**

        - **2-for-1 Split**: numerator=2, denominator=1 (shareholders receive 2
        shares for each 1 held)

        - **3-for-2 Split**: numerator=3, denominator=2 (shareholders receive 3
        shares for each 2 held)

        - **Reverse Split (1-for-5)**: numerator=1, denominator=5
        (consolidation, 5 shares become 1)

        - **Split Ratio**: numerator/denominator (e.g., 2.0 means stock doubles
        in quantity, halves in price)


        **Usage Examples**


        1. **Get AAPL splits for 2024**:
        `?symbol=AAPL&start_time=1704067200&end_time=1735689600`

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

        3. **Get maximum data points**:
        `?symbol=NVDA&start_time=1640995200&end_time=1735689600&limit=1000`


        **Important Notes**


        - All required parameters must be provided

        - Results are ordered by date (typically descending)

        - PIT splits provide point-in-time snapshots as they were known
        historically

        - Split date is the effective date of the split

        - Use split ratio for historical price adjustments: adjusted_price =
        price * (denominator / numerator)
      parameters:
        - description: Stock symbol (e.g., AAPL, TSLA, NVDA)
          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 splits
          content:
            application/json:
              schema:
                allOf:
                  - $ref: '#/components/schemas/model.APIResponse'
                  - properties:
                      data:
                        items:
                          $ref: '#/components/schemas/model.PITStockSplitData'
                        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.PITStockSplitData:
      properties:
        date:
          description: Split date in YYYY-MM-DD format
          type: string
        denominator:
          description: Split denominator (e.g., 1.0 for 2-for-1 split)
          type: number
        numerator:
          description: Split numerator (e.g., 2.0 for 2-for-1 split)
          type: number
        observed_at:
          description: Ingestion timestamp (created_at) in Unix seconds (UTC); 0 if unknown
          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

````