mnb-exchange-rate
TypeScript icon, indicating that this package has built-in type declarations

0.3.0 • Public • Published

MNB Exchange Rate API

Docs - mnb.hu

Install

yarn add mnb-exchange-rate

Usage

import {getClient} from 'mnb-exchange-rate'

const client = await getClient()

const info = await client.GetInfo()
const currencies = await client.GetCurrencies()
const units = await client.GetCurrencyUnits({currencies: ['EUR', 'JPY']})
const interval = await client.GetDateInterval()
const rate_current = await client.GetCurrentExchangeRates()
const rates = await client.GetExchangeRates({startDate: '2000-01-01', endDate: '2000-01-02', currencies: ['EUR']})

Dependents (0)

Package Sidebar

Install

npm i mnb-exchange-rate

Weekly Downloads

2

Version

0.3.0

License

MIT

Unpacked Size

29 kB

Total Files

65

Last publish

Collaborators

  • lajosbencz