> ## 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 Technical Metrics Screener Time Range

> [OpenAPI JSON Spec](/docs/output/v1_stocks_screener_technical-metrics_timerange_get.json)
Retrieve stocks filtered by technical metrics over a time range. Returns stocks matching the specified metric type and value range, grouped by date.

**Overview:**
This endpoint filters stocks based on technical analysis metrics from the `market_metrics_1d`, `market_metrics_1w`, or `market_metrics_1m` tables over a specified time range. Results are grouped by date (YYYY-MM-DD format).

**Technical Metrics:** Same as the snapshot endpoint - supports all technical metric types (PRICE_CHANGE_1W, MA_5, RSI_14, BETA, etc.)

**Filtering:**
- Use `range_min` to filter for stocks where the metric value is greater than or equal to the minimum
- Use `range_max` to filter for stocks where the metric value is less than or equal to the maximum
- Both filters can be used together to create a range
- If neither filter is provided, all stocks matching the metric type will be returned

**Limit Parameter:**
- Use `limit` to limit the maximum number of results returned per day (optional, defaults to no limit)
- This is useful for pagination or when you only need the top N results per day

**Response Format:**
Returns an array of date-grouped data items. Each item contains a date (YYYY-MM-DD format) and an array of stocks with their symbol, snapshot time (Unix timestamp seconds, UTC), metric type, and metric value for that date.
**ETF inclusion**: Liquid ETFs (30-day average daily dollar volume ≥ $10M, ~800 ETFs) are included in results across all 36 technical metrics.



## OpenAPI

````yaml /api-reference/openapi.json get /v1/stocks/screener/technical-metrics/timerange
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/screener/technical-metrics/timerange:
    get:
      tags:
        - Stock
      summary: Get Technical Metrics Screener Time Range
      description: >-
        [OpenAPI JSON
        Spec](/docs/output/v1_stocks_screener_technical-metrics_timerange_get.json)

        Retrieve stocks filtered by technical metrics over a time range. Returns
        stocks matching the specified metric type and value range, grouped by
        date.


        **Overview:**

        This endpoint filters stocks based on technical analysis metrics from
        the `market_metrics_1d`, `market_metrics_1w`, or `market_metrics_1m`
        tables over a specified time range. Results are grouped by date
        (YYYY-MM-DD format).


        **Technical Metrics:** Same as the snapshot endpoint - supports all
        technical metric types (PRICE_CHANGE_1W, MA_5, RSI_14, BETA, etc.)


        **Filtering:**

        - Use `range_min` to filter for stocks where the metric value is greater
        than or equal to the minimum

        - Use `range_max` to filter for stocks where the metric value is less
        than or equal to the maximum

        - Both filters can be used together to create a range

        - If neither filter is provided, all stocks matching the metric type
        will be returned


        **Limit Parameter:**

        - Use `limit` to limit the maximum number of results returned per day
        (optional, defaults to no limit)

        - This is useful for pagination or when you only need the top N results
        per day


        **Response Format:**

        Returns an array of date-grouped data items. Each item contains a date
        (YYYY-MM-DD format) and an array of stocks with their symbol, snapshot
        time (Unix timestamp seconds, UTC), metric type, and metric value for
        that date.

        **ETF inclusion**: Liquid ETFs (30-day average daily dollar volume ≥
        $10M, ~800 ETFs) are included in results across all 36 technical
        metrics.
      parameters:
        - description: Start time (Unix timestamp in seconds, UTC)
          in: query
          name: start_time
          required: true
          schema:
            type: integer
        - description: End time (Unix timestamp in seconds, UTC)
          in: query
          name: end_time
          required: true
          schema:
            type: integer
        - description: >-
            Metric type. Valid values: PRICE_CHANGE_1D, PRICE_CHANGE_1W,
            PRICE_CHANGE_1M, PRICE_CHANGE_3M, PRICE_CHANGE_6M, PRICE_CHANGE_YTD,
            PRICE_CHANGE_1Y, PRICE_CHANGE_3Y, PRICE_CHANGE_5Y, SHARES_VOLUME,
            DOLLAR_VOLUME, AVERAGE_DAILY_DOLLAR_VOLUME, MA_5, MA_10, MA_20,
            MA_60, MA_120, MA_200, EMA_5, EMA_10, EMA_20, EMA_60, EMA_120,
            EMA_200, RSI_14, MACD_DIF, MACD_DEA, MACD_HIST, BOLLINGER_UPPER,
            BOLLINGER_MID, BOLLINGER_LOWER, VWAP_DAY, BETA, VOLATILITY_20,
            VOLATILITY_60, VOLATILITY_90
          in: query
          name: metric_type
          required: true
          schema:
            type: string
        - description: >-
            Minimum value filter (optional). Returns only stocks where metric
            value >= range_min
          in: query
          name: range_min
          schema:
            type: number
            format: float64
        - description: >-
            Maximum value filter (optional). Returns only stocks where metric
            value <= range_max
          in: query
          name: range_max
          schema:
            type: number
            format: float64
        - description: >-
            Sort order (optional). Valid values: ASC (ascending), DESC
            (descending). Defaults to DESC
          in: query
          name: order_by
          schema:
            type: string
        - description: Maximum number of results per day (optional, defaults to no limit)
          in: query
          name: limit
          schema:
            type: integer
        - description: >-
            Asset type filter. Valid values: stock (CS/ADRC), etf. Optional,
            defaults to stock.
          in: query
          name: symbol_type
          schema:
            type: string
            enum:
              - stock
              - etf
      responses:
        '200':
          description: Successfully retrieved technical metrics screener time range data
          content:
            application/json:
              schema:
                allOf:
                  - $ref: '#/components/schemas/model.APIResponse'
                  - properties:
                      data:
                        items:
                          $ref: >-
                            #/components/schemas/model.MetricScreenerTimeRangeDataItem
                        type: array
                    type: object
        '400':
          description: >-
            Invalid parameters (missing start_time/end_time, invalid
            metric_type, start_time >= end_time, etc.)
          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.MetricScreenerTimeRangeDataItem:
      properties:
        date:
          description: Date in ISO 8601 format (YYYY-MM-DD)
          example: '2024-01-01'
          type: string
        items:
          description: All stock data for this date
          items:
            $ref: '#/components/schemas/model.MetricScreenerTimeRangeData'
          type: array
      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.MetricScreenerTimeRangeData:
      properties:
        metric:
          description: Metric type
          example: PE_RATIO
          type: string
        snapshot_time:
          description: Snapshot time (Unix timestamp seconds, UTC)
          example: 1705276800
          type: integer
        symbol:
          description: Stock symbol
          example: AAPL
          type: string
        value:
          description: Metric value
          example: 28.5
          type: number
      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

````