> ## Documentation Index
> Fetch the complete documentation index at: https://docs.amberdata.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Historical

> Retrieves the historical prices (and other market information) for the specified token from October 2019 forward.

Note: This endpoint returns a max of 6 months of historical data. In order to get more than 6 months you must use the `startDate` & `endDate` parameters to move the time frame window to get the next ***n*** days/months of data.




## OpenAPI

````yaml get /tokens/prices/{symbol}/historical
openapi: 3.1.0
info:
  title: Market Metrics API Old
  version: '2'
servers:
  - url: https://api.amberdata.com/market
security:
  - sec0: []
paths:
  /tokens/prices/{symbol}/historical:
    get:
      summary: Historical
      description: >
        Retrieves the historical prices (and other market information) for the
        specified token from October 2019 forward.


        Note: This endpoint returns a max of 6 months of historical data. In
        order to get more than 6 months you must use the `startDate` & `endDate`
        parameters to move the time frame window to get the next ***n***
        days/months of data.
      operationId: get-historical-token-price
      parameters:
        - name: symbol
          in: path
          description: The symbol of the token for which to retrieve prices.
          schema:
            type: string
            default: mkr
          required: true
        - name: startDate
          in: query
          description: >-
            Filter by prices after this date (expressed as milliseconds, for
            example 1590969600000). Note that the interval can not exceed 6
            months (d), 30 days (h) or 24 hours (m).
          schema:
            type: string
            format: date-time
        - name: endDate
          in: query
          description: >-
            Filter by prices before this date (expressed as milliseconds, for
            example 1593561600000). Note that the interval can not exceed 6
            months (d), 30 days (h) or 24 hours (m).
          schema:
            type: string
            format: date-time
        - name: timeInterval
          in: query
          description: >-
            The time interval to return the historical data in: by day (d), by
            hour (h), or by minute (m).
          schema:
            type: string
            default: d
        - name: timeFormat
          in: query
          description: >
            **[Optional]** Time format of the timestamps in the return payload.

            **[Defaults]** `milliseconds | ms* | iso | iso8601 | hr |
            human_readable`
          schema:
            type: string
            default: ms
      responses:
        '200':
          description: '200'
          content:
            application/json:
              examples:
                Result:
                  value:
                    status: 200
                    title: OK
                    description: Successful request
                    payload:
                      metadata:
                        columns:
                          - timestamp
                          - priceUSD
                          - hourlyPercentChangeUSD
                          - dailyPercentChangeUSD
                          - dailyVolumeUSD
                          - weeklyPercentChangeUSD
                          - circulatingSupply
                          - totalSupply
                          - marketCapUSD
                        startDate: 1573257600000
                        endDate: 1575849600000
                        decimals: '18'
                      data:
                        - - 1573257600000
                          - 664.99
                          - -0.49156410160487823
                          - -0.06386991576685226
                          - 2838.994792207
                          - 26.020258298037653
                          - '999999.9999999000000000'
                          - '3619999.99999963800000000000000000000000'
                          - '664990000.00000000000000000000000000000000'
                        - - 1573344000000
                          - 664.99
                          - 1.3271774242701286
                          - -0.42973078190039826
                          - 2123.3865779946
                          - 25.263009182952672
                          - '999999.9999999000000000'
                          - '1000000.0000000000000000'
                          - '664990000.00000000000000000000000000000000'
        '400':
          description: '400'
          content:
            application/json:
              examples:
                Result:
                  value: {}
              schema:
                type: object
                properties: {}
      deprecated: false
      security:
        - ApiKeyAuth: []
components:
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: x-api-key

````