Retrieves the historical price for the specified pair - the price is calculated across all exchanges which supports this pair, including all cross rates pairs.
Price of a pair is calculated as the VWAP (Volume Weighted Average Price) across all exchanges supporting this pair, with a 1 bar lookback period. If the parameter exchange is specified, the data returned is the VWAP 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.
Volume Field
For accurate volume information, please refer to our 'OHLCV - Historical' endpoints instead. As an alternative, the 'Metrics - Asset Volume Historical' endpoint can be used to obtain asset volume per exchange.
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. *Note: this field will soon be deprecated For accurate volume information, please refer to our 'OHLCV - Historical' endpoints instead. As an alternative, the 'Metrics - Asset Volume Historical' endpoint can be used to obtain asset volume per exchange. |