connector.getAccountInfo() → {object}
Retrieves account information including remaining requests and rate limit quotas.
Returns:
object
Details of the Xe.com account.
Example:
// {"id":"77bbe757-a8c5-4ba7-b03a-2059d8015e81","organization":"Example.com",
// "package":"FREETRIAL_DAILY_REAL_DATA","service_start_timestamp":"2024-04-30T00:00:00Z",
// "service_end_timestamp":"2024-05-08T00:00:00Z","package_limit":10000,
// "package_limit_remaining":9991}
connectors.verjio.xecurrencyconverter.getAccountInfo();
Convert a single currency to one or more destination currencies.
Parameters:
Name |
Type |
Description |
from |
string |
The currency code of the starting currency.
|
to |
string | Array.<string> |
One or more currency codes represented as a string, a comma-separated string or an array.
|
amount |
number |
The value of the from currency to convert.
|
Returns:
Examples:
// {"JPY":1963.2201001892}
var rates = connectors.verjio.xecurrencyconverter.convertTo('GBP', 'JPY', 10);
var conversion = rates['JPY'];
// Convert from $14.99 into GBP and EUR
// {"EUR":13.9900865562,"GBP":11.9352998938}
var rates = connectors.verjio.xecurrencyconverter.convertTo('USD', ['GBP', 'EUR'], 14.99);
Convert one or more currencies to a single destination currency.
Parameters:
Name |
Type |
Description |
from |
string | Array.<string> |
One or more currency codes represented as a string, a comma-separated string or an array.
|
to |
string |
The currency code of the destination currency.
|
amount |
number |
The value of the from currencies to convert.
|
Returns:
Example:
// {"GBP":0.0509367238}
var rates = connectors.verjio.xecurrencyconverter.convertTo('GBP', 'JPY', 10);
var conversion = rates['GBP'];
getCurrencyList() → {object}
Retrieve a list of supported currencies.
The returned data includes the ISO currency code and the full name of each currency.
Returns:
object
Details of available currencies.
Example:
// {"currencies":[{"iso":"AED","currency_name":"Emirati Dirham","is_obsolete":false}, ...]}
connectors.verjio.xecurrencyconverter.getCurrencyList();