1.0.2 • Published 6 years ago

@plasma-platform/tm-service-currencies v1.0.2

Weekly downloads
-
License
CC-BY-4.0
Repository
gitlab
Last release
6 years ago

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>