GET
/
metrics
/
exchanges
/
{exchange}
/
assets
/
{asset}
/
historical
Assets Historical
curl --request GET \
  --url https://api.amberdata.com/market/defi/metrics/exchanges/{exchange}/assets/{asset}/historical \
  --header 'x-api-key: <api-key>'
{
  "status": 200,
  "title": "OK",
  "description": "Successful request",
  "payload": [
    {
      "exchangeId": "0x5c69bee701ef814a2b6a3edd4b1652cb9cc5aa6f",
      "timestamp": "2020-12-29T06:00:00.000Z",
      "liquidityTotalNative": "493048636.201664275395561830",
      "liquidityTotalUSD": "335.274877053807418927"
    }
  ]
}

Authorizations

x-api-key
string
header
default:API_KEY
required

Path Parameters

exchange
string
default:uniswapv2
required

Exchange for which to return the global metrics - can be specified as:<BR/>- a name: uniswapv2<BR/>- an id: 0x5c69bee701ef814a2b6a3edd4b1652cb9cc5aa6f

asset
string
default:0x6b175474e89094c44da98b954eedeac495271d0f
required

Asset for which to return the metrics, for example:<BR/>- 0x6b175474e89094c44da98b954eedeac495271d0f (DAI)

Query Parameters

startDate
string

[Optional] Payload only includes data after this date (inclusive).<BR>[Formats] seconds | milliseconds | iso8601<BR>[Examples] 1578531600 | 1578531600000 | 2020-09-01T01:00:00

endDate
string

[Optional] Payload only includes data before this date (exclusive).<BR>[Formats] seconds | milliseconds | iso8601<BR>[Examples] 1578531600 | 1578531600000 | 2020-09-01T01:00:00

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.