> ## 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 Darkpool OHLC Data

> [OpenAPI JSON Spec](/docs/output/v1_stocks_darkpool_get.json)
Retrieve darkpool trading data for specified stock tickers within a time range.

**Features:**
- Query darkpool trading data by ticker symbol
- Support time range filtering
- Returns hourly aggregated OHLC and volume data
- Includes volume, trade count, and VWAP information

**Parameters:**
- `symbol`: Stock symbol (required)
- `start_time`: Start time as Unix timestamp (required, inclusive)
- `end_time`: End time as Unix timestamp (required, inclusive, must be on or after start_time)

**Response Fields:**
- `symbol`: Stock symbol
- `timestamp`: Hourly timestamp in Unix seconds (UTC)
- `open`: Opening price in the hour
- `high`: Highest price in the hour
- `low`: Lowest price in the hour
- `close`: Closing price in the hour
- `volume`: Total trading volume
- `trade_count`: Number of trades executed
- `total_value`: Total transaction value
- `vwap`: Volume Weighted Average Price
```



## OpenAPI

````yaml /api-reference/openapi.json get /v1/stocks/darkpool
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/darkpool:
    get:
      tags:
        - Stock
      summary: Get Darkpool OHLC Data
      description: >-
        [OpenAPI JSON Spec](/docs/output/v1_stocks_darkpool_get.json)

        Retrieve darkpool trading data for specified stock tickers within a time
        range.


        **Features:**

        - Query darkpool trading data by ticker symbol

        - Support time range filtering

        - Returns hourly aggregated OHLC and volume data

        - Includes volume, trade count, and VWAP information


        **Parameters:**

        - `symbol`: Stock symbol (required)

        - `start_time`: Start time as Unix timestamp (required, inclusive)

        - `end_time`: End time as Unix timestamp (required, inclusive, must be
        on or after start_time)


        **Response Fields:**

        - `symbol`: Stock symbol

        - `timestamp`: Hourly timestamp in Unix seconds (UTC)

        - `open`: Opening price in the hour

        - `high`: Highest price in the hour

        - `low`: Lowest price in the hour

        - `close`: Closing price in the hour

        - `volume`: Total trading volume

        - `trade_count`: Number of trades executed

        - `total_value`: Total transaction value

        - `vwap`: Volume Weighted Average Price

        ```
      parameters:
        - description: Stock symbol (e.g., AAPL)
          in: query
          name: symbol
          required: true
          schema:
            type: string
        - description: Start time (Unix timestamp)
          in: query
          name: start_time
          required: true
          schema:
            type: integer
            format: int64
        - description: End time (Unix timestamp)
          in: query
          name: end_time
          required: true
          schema:
            type: integer
            format: int64
      responses:
        '200':
          description: Successfully retrieved darkpool OHLC data
          content:
            application/json:
              schema:
                allOf:
                  - $ref: '#/components/schemas/model.APIResponse'
                  - properties:
                      data:
                        items:
                          $ref: '#/components/schemas/model.DarkpoolOHLCData'
                        type: array
                    type: object
        '400':
          description: Invalid parameters
          content:
            application/json:
              schema:
                allOf:
                  - $ref: '#/components/schemas/model.APIResponse'
                  - properties:
                      error:
                        $ref: '#/components/schemas/model.APIError'
                    type: object
        '500':
          description: Internal server error
          content:
            application/json:
              schema:
                allOf:
                  - $ref: '#/components/schemas/model.APIResponse'
                  - properties:
                      error:
                        $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.DarkpoolOHLCData:
      properties:
        close:
          description: Closing price
          type: string
        high:
          description: Highest price
          type: string
        low:
          description: Lowest price
          type: string
        open:
          description: Opening price
          type: string
        symbol:
          description: Stock symbol
          type: string
        timestamp:
          description: Hour timestamp (Unix seconds)
          type: integer
        total_value:
          description: Total trade value
          type: string
        trade_count:
          description: Number of trades
          type: integer
        volume:
          description: Trade volume
          type: integer
        vwap:
          description: Volume-weighted average price
          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

````