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

Authorizations

x-api-key
string
header
default:API_KEY
required

Path Parameters

exchange
string
default:uniswapv2
required

Exchange of the asset for which to return the 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

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.