Javascript
import Ivy from '@getivy/node-sdk'; const client = new Ivy({ apiKey: 'My API Key', }); const response = await client.fx.retrieveRate({ sourceCurrency: 'EUR', targetCurrency: 'EUR' }); console.log(response.rate);
{ "rate": "<string>", "targetAmount": "<string>", "sourceAmount": "<string>" }
Retrieve the current exchange rate for a given currency pair. The rate is not guaranteed for any following transactions.
API key for authentication
Returns the current exchange rate for the given currency pair.
The response is of type object.
object
Was this page helpful?