@plasma-platform/tm-service-currencies

Service Currencies Api

Usage no npm install needed!

<script type="module">
  import plasmaPlatformTmServiceCurrencies from 'https://cdn.skypack.dev/@plasma-platform/tm-service-currencies';
</script>

README

Documentation

Table of Contents

ServiceCurrencies

Currencies API

getCurrencyExchangeRate

Request Currency information

Parameters

  • params object
    • params.currency string Currency iso3 code
    • params.date string? Date in format 'YYYY-mm-dd'. (By default: current date)

Examples

(async () => {
  const service = new Service(url);
  const request = await service.getCurrencyExchangeRate(params);
})();

Returns Promise<any>

getExchangeRateList

Get list of available currencies

Parameters

  • params object
    • params.date string? Date in format 'YYYY-mm-dd'. (By default: current date)

Examples

(async () => {
  const service = new Service(url);
  const request = await service.getExchangeRateList(date);
})();

Returns Promise<any>