get https://api.amberdata.com/market/defi/vwap/pairs/bases//quotes//historical
Retrieves the historical VWAP for the specified base, quote pair - this is the global VWAP across all supported contracts.
Default results are over 1 minute intervals with 60 minutes lookback period.
VWAP is calculated as a volume weighted moving average across all contracts.
Price Data CalculationsAll prices are only calculated from data collected in Uniswap v2, Uniswap v3, Sushiswap and Uniswap clones.
Blockchains SupportedThis endpoint only supports data from
ethereum-mainnet
.
Time Range LimitThe maximum time range (difference between startDate and endDate) is:
- 1 day with minutely data
- 31 days with hourly data
- 1 year with daily data
Not specifying startDate and endDateIf the startDate and endDate query parameters are not provided, the API will return the data from the previous 24 hours with a 1 minute frequency.
Response Data
Field | Type | Description |
---|---|---|
timestamp | `number \ | string` |
pair | string | The name of the pair. |
price | string | The price of the pair. |
vwap | string | The Volume Weighted Average Price. |
volume | string | The volume of the pair at this point in time. |
baseAddress | string | Same as passed in parameter |
baseSymbol | string | Symbol of the base asset |
quoteAddress | string | Same as passed in parameter |
quoteSymbol | string | Symbol of the quote asset |