1.1.2 • Published 3 years ago

tcmb-doviz v1.1.2

Weekly downloads
4,629
License
MIT
Repository
github
Last release
3 years ago

tcmb-doviz tcmb-doviz is used only to display the exchange rates of the Central Bank of Turkey.

npm version npm

Installation

# installation via npm
npm install tcmb-doviz

# installation via yarn
yarn add tcmb-doviz

Examples

const tcmbdoviz = require('tcmb-doviz');

const data = await tcmbdoviz.getData() // Get All Data
console.log(data)
/* Output: {date: '05/11/2021 15:30 (GMT+3)', exchanges: [
	{
		name: 'ABD DOLARI',
		code: 'USD',
		buying: 8.2867,
		selling: 8.3016
	},
	{ name: 'EURO', code: 'EUR', buying: 10.0727, selling: 10.0909 }, ...
]} */

const exchangeRate = await tcmbdoviz.getExchangeRate('USD')
console.log(exchangeRate)
/* Output: {
	name: 'ABD DOLARI',
	code: 'USD',
	buying: 8.2867,
	selling: 8.3016
} */

const exchangeRates = await tcmbdoviz.getExchangeRates() // Get Exchanges Rates
console.log(exchangeRates)
/* Output: [
	{
		name: 'ABD DOLARI',
		code: 'USD',
		buying: 8.2867,
		selling: 8.3016
	},
	{ name: 'EURO', code: 'EUR', buying: 10.0727, selling: 10.0909 }, ...
] */

License

The content of this project itself is licensed under the Creative Commons Attribution 3.0 Unported license, and the underlying source code used to format and display that content is licensed under the MIT license.

1.1.2

3 years ago

1.1.1

3 years ago

1.0.6

4 years ago

1.0.5

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago