Fetch Exchange Rates
Understand how to retrieve specific and current cryptocurrency exchange rates using CoinAPI's API endpoints. Learn to work with volume-weighted average prices and customize requests with parameters, enabling you to integrate accurate exchange rate data into your Python applications.
We'll cover the following...
What are exchange rates?
We can describe exchange rates as the price in one asset or currency to convert it to another asset or currency. The exchange rate that CoinAPI provides is the 24-Hour (rolling window) Volume Weighted Average Price, or VWAP-24H, from across multiple data sources on the CoinAPI platform.
Fetch a specific exchange rate
We can get a specific exchange rate for a currency pair on CoinAPI using /v1/exchangerate/{asset_id_base}/{asset_id_quote}, where asset_id_base represents the id of the base asset we want and asset_id_quote represents the id of the quote asset we want to exchange ...