GET
/
metrics
/
exchanges
/
{exchange}
/
pairs
/
{pair}
/
latest
Pairs Latest
curl --request GET \
  --url https://api.amberdata.com/market/defi/metrics/exchanges/{exchange}/pairs/{pair}/latest \
  --header 'x-api-key: <api-key>'
{
  "status": 200,
  "title": "OK",
  "description": "Successful request",
  "payload": [
    {
      "exchangeId": "0x5c69bee701ef814a2b6a3edd4b1652cb9cc5aa6f",
      "timestamp": "2020-12-29T07:00:00.000Z",
      "address": "0x6b175474e89094c44da98b954eedeac495271d0f",
      "feesNative": "1.535162374359281676",
      "feesUSD": "1.537493485860114379",
      "liquidityTotalNative": "79732489.660759360681767727",
      "liquidityTotalUSD": "79853561.754983786842105053",
      "pairsTradedTotal": 1,
      "tradesTotal": 11,
      "priceNative": "0.00061015503280647554",
      "volumeTotalNative": "511.720791453093891836",
      "volumeTotalUSD": "512.497828620038126212"
    }
  ]
}

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

pair
string
default:0xa478c2975ab1ea89e8196811f51a7b7ade33eb11
required

Pair for which to return the metrics, for example:<BR/>- 0xa478c2975ab1ea89e8196811f51a7b7ade33eb11 (DAI_WETH)

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.