---
title: "Historical values of the Argaam Petrochemical Price Index."
url: "https://developer.argaam.com/apis/macroeconomic-layer-api-production-v1/versions/eeada0b4-178b-4972-8713-f497c9940530/operations/getPetrochemicalsIndexHistory"
---

> Full API specification: https://developer.argaam.com/apis/macroeconomic-layer-api-production-v1/versions/eeada0b4-178b-4972-8713-f497c9940530.md

# Historical values of the Argaam Petrochemical Price Index.

`GET` `/api/v1.1/petrochemicals/index/history`

Operation ID: `getPetrochemicalsIndexHistory`

Daily index history for the supplied window. Use for trend charts and rolling-window analytics. ### Example ``` GET /api/v1.1/petrochemicals/index/history?from=2023-01-01&to=2023-12-31 ```

## Query parameters

- `from` (string, optional) - Start date (`yyyy-MM-dd`).
- `to` (string, optional) - End date (`yyyy-MM-dd`).

## Responses

- `200` - Success

## OpenAPI definition

````yaml
openapi: 3.0.1
info:
  title: Macroeconomic Layer API
  version: v1.1
servers:
  - url: https://api.argaam.com
    description: Argaam API Gateway (Production)
paths:
  /api/v1.1/petrochemicals/index/history:
    get:
      tags:
        - Petrochemicals
      parameters:
        - name: from
          in: query
          description: Start date (`yyyy-MM-dd`).
          schema:
            type: string
          example: 2024-01-01
        - name: to
          in: query
          description: End date (`yyyy-MM-dd`).
          schema:
            type: string
          example: 2024-03-31
      responses:
        "200":
          description: Success
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: "#/components/schemas/PetrochemicalPriceIndex"
      summary: Historical values of the Argaam Petrochemical Price Index.
      description: "Daily index history for the supplied window. Use for trend\r

        charts and rolling-window analytics.\r

        \            \r

        ### Example\r

        ```\r

        GET
        /api/v1.1/petrochemicals/index/history?from=2023-01-01&to=2023-12-31\r

        ```"
      operationId: getPetrochemicalsIndexHistory
security:
  - ApiKeyAuth: []
components:
  schemas:
    PetrochemicalPriceIndex:
      type: object
      properties:
        date:
          type: string
          format: date-time
        priceValue:
          type: number
          format: double
          nullable: true
        change:
          type: number
          format: double
          nullable: true
      additionalProperties: false
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: apikey
````
