POST
/
api
/
service
/
fx
/
retrieve-rate
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>"
}

Authorizations

X-Ivy-Api-Key
string
header
required

API key for authentication

Body

application/json

Response

200 - application/json

Returns the current exchange rate for the given currency pair.

The response is of type object.