get https://web3api.io/api/v2/market/spot/twap/pairs//historical
Retrieves the historical TWAP for the specified pair - this is the global TWAP across all exchanges which supports this pair, including all cross rates pairs.
Price is calculated as a time weighted moving average across all exchanges.
If the parameter exchange
is specified, the data returned is the TWAP for that pair on that exchange.
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 time at which the event occured. |
pair | string | The name of the pair. |
price | number | The price of the pair. |
volume | number | The volume of the pair at this point in time. |
twap | number | The Time Weighted Average Price. |