GET
/
tokens
/
prices
/
{symbol}
/
historical
Historical
curl --request GET \
  --url https://api.amberdata.com/market/tokens/prices/{symbol}/historical \
  --header 'x-api-key: <api-key>'
{
  "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"
      ]
    ]
  }
}

Authorizations

x-api-key
string
header
required

Path Parameters

symbol
string
default:mkr
required

The symbol of the token for which to retrieve prices.

Query Parameters

startDate
string<date-time>

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).

endDate
string<date-time>

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).

timeInterval
string
default:d

The time interval to return the historical data in: by day (d), by hour (h), or by minute (m).

timeFormat
string
default:ms

[Optional] Time format of the timestamps in the return payload. [Defaults] milliseconds | ms* | iso | iso8601 | hr | human_readable

Response

200
application/json

200

The response is of type any.