Search⌘ K
AI Features

Exchange Rate Time Series

Explore how to retrieve and analyze historical exchange rate time series data with CoinAPI using Python. Understand key concepts like supported time periods, base and quote assets, and how to configure API endpoints to get accurate market data over specific intervals.

Time series

We can describe a time series as a series of data points at successive equal time intervals over a period of time. We can fetch historical data on exchange rates of any asset or currency pair spread over equal time intervals.

Time series periods

We can get a complete list of supported time periods available on CoinAPI for the time series data on exchange rates. Here's a list of the time series periods available on CoinAPI:

Time Series Periods

Unit of time

Period identifiers

Seconds

1SEC, 2SEC, 3SEC, 4SEC, 5SEC, 6SEC, 10SEC, 15SEC, 20SEC, 30SEC

Minutes

1MIN, 2MIN, 3MIN, 4MIN, 5MIN, 6MIN, 10MIN, 15MIN, 20MIN, 30MIN

Hours

1HRS, 2HRS, 3HRS, 4HRS, 6HRS, 8HRS, 12HRS

Days

1DAY, 2DAY, 3DAY, 5DAY, 7DAY, 10DAY

We can get the supported time periods on CoinAPI using the /v1/exchangerate/history/periods ...