tcmb-rates

0.1.0 • Public • Published

tcmb-rates

Get The Central Bank of the Republic of Turkey's daily currency rates in a JSON format.

Installation

Using npm:

npm i tcmb-rates

In Node.ls

// Load the package
var tcmb_rates = require('tcmb-rates');

// get today's (yesterday's) rate in US Dollars:
tcmb_rates.getRate().then(res => console.log(res)).catch(err => console.error(err.message));

// get today's (yesterday's) rate in Euros:
tcmb_rates.getRate('30052021','EUR').then(res => console.log(res)).catch(err => console.error(err.message));

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

License

ISC

Readme

Keywords

Package Sidebar

Install

npm i tcmb-rates

Weekly Downloads

0

Version

0.1.0

License

ISC

Unpacked Size

17.4 kB

Total Files

7

Last publish

Collaborators

  • yacine902