Skip to content

Latest commit

 

History

History
21 lines (13 loc) · 508 Bytes

DOCUMENTATION.md

File metadata and controls

21 lines (13 loc) · 508 Bytes

Documentation

You can see below the API reference of this module.

getRates(cb)

Get the currency exchange rates.

Params

  • Function cb: The callback function.

convert(amount, inputCurrency, outputCurrency, cb)

Convert currencies.

Params

  • Number amount: The amount of the input currency.
  • String inputCurrency: The input currency name (e.g. EUR).
  • String outputCurrency: The output currency (e.g. USD).
  • Function cb: The callback function.