---
title: "Historical quotes for a \"regular\" commodity."
url: "https://developer.argaam.com/apis/macroeconomic-layer-api-production-v1/versions/eeada0b4-178b-4972-8713-f497c9940530/operations/getCommoditiesByCommodityIdQuotesRegularHistory"
---

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

# Historical quotes for a "regular" commodity.

`GET` `/api/v1.1/commodities/{commodityId}/quotes/regular/history`

Operation ID: `getCommoditiesByCommodityIdQuotesRegularHistory`

Returns end-of-day archive prices for the supplied commodity across the requested date window. ### Example ``` GET /api/v1.1/commodities/1/quotes/regular/history?from=2024-01-01&to=2024-01-31 ```

## Path parameters

- `commodityId` (integer, int32, required) - Commodity identifier (e.g., `1` for Brent).

## Query parameters

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

## 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/commodities/{commodityId}/quotes/regular/history:
    get:
      tags:
        - Commodities
      parameters:
        - name: commodityId
          in: path
          required: true
          schema:
            type: integer
            format: int32
          description: Commodity identifier (e.g., `1` for Brent).
        - name: from
          in: query
          description: "Start date (`yyyy-MM-dd`). Default: yesterday."
          schema:
            type: string
          example: 2024-01-01
        - name: to
          in: query
          description: "End date (`yyyy-MM-dd`). Default: today."
          schema:
            type: string
          example: 2024-03-31
      responses:
        "200":
          description: Success
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: "#/components/schemas/CommodityQuoteArchive"
      summary: Historical quotes for a "regular" commodity.
      description: "Returns end-of-day archive prices for the supplied commodity\r

        across the requested date window.\r

        \            \r

        ### Example\r

        ```\r

        GET
        /api/v1.1/commodities/1/quotes/regular/history?from=2024-01-01&to=2024-\
        01-31\r

        ```"
      operationId: getCommoditiesByCommodityIdQuotesRegularHistory
security:
  - ApiKeyAuth: []
components:
  schemas:
    CommodityQuoteArchive:
      type: object
      properties:
        commodityID:
          type: integer
          format: int32
        commodityNameEn:
          type: string
          nullable: true
        commodityNameAr:
          type: string
          nullable: true
        forDate:
          type: string
          format: date-time
        openValue:
          type: number
          format: double
          nullable: true
        closeValue:
          type: number
          format: double
          nullable: true
        high:
          type: number
          format: double
          nullable: true
        low:
          type: number
          format: double
          nullable: true
      additionalProperties: false
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: apikey
````
