GET
/
vwap
/
pairs
/
bases
/
{base}
/
quotes
/
{quote}
/
latest
Global VWAP - Pairs Latest
curl --request GET \
  --url https://api.amberdata.com/market/defi/vwap/pairs/bases/{base}/quotes/{quote}/latest \
  --header 'x-api-key: <api-key>'
{
  "status": 200,
  "title": "OK",
  "description": "Successful request",
  "payload": {
    "timestamp": 1633138800000,
    "pair": "DAI_WETH",
    "price": "0.00030085",
    "volume": "53.92542645",
    "vwap": "0.00030085"
  }
}

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 quote. (Example is WETH)

Query Parameters

lookbackPeriod
integer
default:60

[Optional] Number of historical data points used in the calculation.<BR/>[Default] 60

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.