GET
/
prices
/
pairs
/
bases
/
{base}
/
quotes
/
{quote}
/
historical
Pairs Historical
curl --request GET \
  --url https://api.amberdata.com/market/defi/prices/pairs/bases/{base}/quotes/{quote}/historical \
  --header 'x-api-key: <api-key>'
{
  "status": 200,
  "title": "OK",
  "description": "Successful request",
  "payload": {
    "metadata": {
      "columns": [
        "timestamp",
        "pair",
        "price",
        "vwap",
        "volume",
        "baseAddress",
        "baseSymbol",
        "quoteAddress",
        "quoteSymbol"
      ],
      "startDate": 1617653294495,
      "endDate": 1617739694495
    },
    "data": [
      1617653400000,
      "DAI_WETH",
      "0.00047459493472467497",
      "0.00047435311444498877000000000000000000",
      "178.096701359537022447",
      "0x6b175474e89094c44da98b954eedeac495271d0f",
      "DAI",
      "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2",
      "WETH"
    ]
  }
}

Authorizations

x-api-key
string
header
default:API_KEY
required

Path Parameters

base
string
default:0x6b175474e89094c44da98b954eedeac495271d0f
required

The address of the base. (example is DAI)

quote
string
default:0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2
required

The address of the base. (Example is WETH)

Query Parameters

startDate
string<date-time>

FIlter by pairs after this date.

endDate
string<date-time>

FIlter by pairs before this date.

timeInterval
string

Time interval to return the historical data in ("days" | "hours" | "minutes")

timeFormat
string

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

Response

200 - application/json

200

The response is of type object.