Display portfolio values and transactions in user-preferred currencies.
Financial apps need to show values in user-preferred currencies. Stale rates lead to inaccurate reporting and poor user experience.
Fetch current exchange rates to convert portfolio values, transaction history, and reports into any currency. Cache rates appropriately for performance.
const res = await fetch("https://api.apiverve.com/v1/exchangerate?currency1=USD¤cy2=EUR", {
headers: { "x-api-key": "YOUR_API_KEY" },
});
const { data } = await res.json();
console.log(data);