Pairs Historical

Retrieves the historical minute by minute price for the specified pair (for example DAI_WETH).

NOTE: DeFi Price is a reference rate established by trade data.

👍

Price Data Calculations

All prices are only calculated from data collected in Uniswap v2, Uniswap v3, Sushiswap and Uniswap clones.

👍

Blockchains Supported

This endpoint only supports data from ethereum-mainnet.

🚧

Time Range Limit

The 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 endDate

If 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

The timestamp at which the price was executed.

pair

string

The pair ticker name, based on symbols of the assets.

price

string

Price associated with the pair.

vwap

string

VWAP associated with the pair.

volume

string

Total volume for candle for a pair.

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

Path Params
string
required
Defaults to 0x6b175474e89094c44da98b954eedeac495271d0f

The address of the base. (example is DAI)

string
required
Defaults to 0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2

The address of the base. (Example is WETH)

Query Params
date-time

FIlter by pairs after this date.

date-time

FIlter by pairs before this date.

string

Time interval to return the historical data in ("days" | "hours" | "minutes")

string

[Optional] Time format of the timestamps in the return payload.
[Defaults] milliseconds | ms* | iso | iso8601 | hr | human_readable

Response

Language
Credentials
Click Try It! to start a request and see the response here! Or choose an example:
application/json