3.0.0 • Published 4 years ago

@datafire/exchangerate_api v3.0.0

Weekly downloads
2
License
MIT
Repository
github
Last release
4 years ago

@datafire/exchangerate_api

Client library for ExchangeRate-API

Installation and Usage

npm install --save @datafire/exchangerate_api
let exchangerate_api = require('@datafire/exchangerate_api').create();

.then(data => {
  console.log(data);
});

Description

Fetch the latest currency exchange rates via API. ExchangeRate-API is free and unlimited.

Actions

latest.base_currency.get

Returns latest exchange rates in parameter-supplied base currency.

exchangerate_api.latest.base_currency.get({
  "base_currency": ""
}, context)

Input

Output

  • output object
    • base string: The currency code you supplied as base in your request
    • date string: The date these exchange rates are for
    • rates object: Each supported currency code in terms of the base currency
    • time_last_updated integer: The epoch time this set of exchange rates was generated

Definitions

This integration has no definitions