get https://web3api.io/api/v2/market/defi/twap/asset//historical
Retrieves the historical minute by minute twap for the specified asset (for example DAI).
NOTE: DeFi Price is a reference rate established by liquidity data.
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. |
asset | string | The asset contract address. |
price | string | Price associated with the pair. |
volume | string | Total asset trading volume. |
twap | string | Twap for the asset. |