Fetch Exchange Rates
Learn how to fetch exchange rates for different cryptocurrencies on CoinAPI.
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 ...