Live Exchange Rate and Conversion
A 3-step recipe with Abstract API. We can help you get access.
Recipe · 3 steps
Live Exchange Rate and Conversion
with Abstract API
Read the live rate, convert an amount, then fetch a historical rate.
- Retrieve the live exchange rates for the base currency against the target currency.
- Convert the supplied base amount into the target currency at the live rate.
- Retrieve the historical exchange rate for the same currency pair on the reference date for comparison.
What you'll need to have ready
- apiKey: Abstract API key valid for the Exchange Rates API.
- base: The base currency ISO code (e.g. USD).
- target: The target currency ISO code (e.g. EUR).
- baseAmount: The amount in the base currency to convert.
- date: The historical date to fetch a reference rate for (YYYY-MM-DD).
For your developer
Arazzo workflow abstract-api:currency-live-and-convert, 3 operations: getLiveExchangeRates → convertCurrency → getHistoricalExchangeRates. Specs on APIs.io.