Installation
npm install tcmb-doviz-api
Examples
const tcmbCurrency = require('tcmb-doviz-api')
const result = await tcmbCurrency.getAllCurrency()
console.log(result);
const result = await tcmbCurrency.getCurrency('USD')
console.log(result);
const result = await tcmbCurrency.getOldDateAllCurrency('2024','01','05')
console.log(result);
const result = await tcmbCurrency.getOldDateCurrency('2024','01','05','USD')
console.log(result);
const result = await convertCurrency('USD', 100);
console.log(result);
const result = await convertOldDateCurrency('2024', '01', '05', 'USD', 100);
console.log(result);