{"_id":"@asefux/exchange-rates","_rev":"4-748dfcaf0fc33d44042373e883158408","name":"@asefux/exchange-rates","dist-tags":{"latest":"1.1.1"},"versions":{"1.0.0":{"name":"@asefux/exchange-rates","version":"1.0.0","description":"gather exchange-rates from muiltiplie national banks","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/asefux/exchange-rates.git"},"author":"","license":"UNLICENSED","bugs":{"url":"https://github.com/asefux/exchange-rates/issues"},"homepage":"https://github.com/asefux/exchange-rates#readme","devDependencies":{"eslint":"^7.1.0","eslint-config-airbnb-base":"^14.1.0","eslint-plugin-import":"^2.20.2"},"dependencies":{"@asefux/common":"^1.4.0-a1","got":"^11.2.0","xml-js":"^1.6.11"},"gitHead":"4869a4ea23194522c0d580e19fd4bf0a82fbcd61","_id":"@asefux/exchange-rates@1.0.0","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-ZQq8W2VfltcTeB82kug44ftO7lETk19BJUGAYA9JWJWta8PY1VBhrs+39J3EcrQZYhNfIyH1ih/t4IFEFab0Zg==","shasum":"68486c33b1ba70b21e54e518b1bc5223f788ddd8","tarball":"https://registry.npmjs.org/@asefux/exchange-rates/-/exchange-rates-1.0.0.tgz","fileCount":14,"unpackedSize":19651,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe2KLwCRA9TVsSAnZWagAAzs4P/jnxPSYaFTjgDVSIz7dy\n+zvTXsXtAhZ/0hjGdHib8WPCnjuhiG9MaxamMljPRcm1M6+uqEdJq2wNYD9S\nBBj1ZX4ApjC6IATPURVDqW2KgKWVD98wnRE6WbGzOSqPL8wXUYj8kFKGBs+i\n6uZQX+vdlJBXSlVeGxCdcbf15RGuXPsANy0lDPklJ6SLyq4rQjooZOOBIaOM\nqopZxNyN/jt6foqCDJJS5+I8+nSw47fR1uXDp0T+6qgHAyZ7leCm6fHV7LZZ\nAylq9Rd6t3NF6LY//Xyc52Kqnyi4gpnhqYYXYxLw8QQ1uRs7UhmdhqjMPP5o\npwhf1NctUTVfP+uDBbo0dKfqdd53fTM7MBYUA0WnqoLtUFL7mI340CTJSztL\npLr83mctHHXrwBhAyGIV4yhjnb30G8fcChr8EqiwyuYJV3uLMV+3HEhzoAbU\n+Nml7eT47bsbdJXDcfa/zeZu3J9PESDdQCAu0KqEWm7CW8csBM0vXmObfNT0\n1qTOKCfchTvjuhdmJjwW0Ivxgzdh4SzDFpyGBvitgoj0mHsmLtaSH5+dL1N2\nOVXY5eCgCHdwoENmhy3wgjyFWN31qTcw2AAzo00QXFmz8C5+t6D3HAgxYWp1\nEgkbRx3EnGA4xxM0HRT785KqaZZJHESglbSi0AyjN8hCmNiwOEtXp5t9d3tE\n7jkb\r\n=lRAK\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGYAovDZhDL2ZmnV2jSMi/MFFCIa7O53nWHMDGdpAm3LAiEA4Oo6gK2J1RrzVxEJ/xhshuvsMA6UoQ8FPN1CoWriTf4="}]},"maintainers":[{"name":"asefux","email":"contact@asefux.com"}],"_npmUser":{"name":"asefux","email":"contact@asefux.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/exchange-rates_1.0.0_1591255792179_0.4183764981568088"},"_hasShrinkwrap":false},"1.0.1":{"name":"@asefux/exchange-rates","version":"1.0.1","description":"gather exchange-rates from muiltiplie national banks","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/asefux/exchange-rates.git"},"author":"","license":"UNLICENSED","bugs":{"url":"https://github.com/asefux/exchange-rates/issues"},"homepage":"https://github.com/asefux/exchange-rates#readme","devDependencies":{"eslint":"^7.1.0","eslint-config-airbnb-base":"^14.1.0","eslint-plugin-import":"^2.20.2"},"dependencies":{"@asefux/common":"^1.4.0-a1","got":"^11.2.0","xml-js":"^1.6.11"},"gitHead":"262f252c2ba485221da45b16c33405f3f79ca972","_id":"@asefux/exchange-rates@1.0.1","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-FLiLDfzaShofWJRX8Ofz6mjQUrKBQXLhvIZosFoYPUPZUOjTRWp+mkrMlSgnOfJC5fEzbvmNTjOR1JWBZMziSg==","shasum":"1744dc2c81c164d8d4f0e106e48231d04f2e99ea","tarball":"https://registry.npmjs.org/@asefux/exchange-rates/-/exchange-rates-1.0.1.tgz","fileCount":14,"unpackedSize":20372,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe2LoBCRA9TVsSAnZWagAAyI4P/RSQizv5KfOPPtYbhPkL\nJwlPQltjok8QFGCSZN3JCzQAsFZx8vVm8ZynGbFyl43gnK4/hFyNUURCyowC\nRQOjD5iDirfRIsZgeROFNfAjfZM0oUnGCdh9R55t1iXXEL8KY1HC+az2uZ6N\nVz/T11OeBiUxQQ1GQmgjJZ3LU4klpV06jR00lXJsR3+KUaaarIvwAJj+PiAl\nGT+5BUOWK4uNj+XNamr0thL/Rg0509Db5cN762uqHVOWmaDY/9stNeV15SWm\nHQYLQkR4EEIEkdJBu2M+srnX3ZdvFJK20dMMioK4+U/biAF7j9iJcpDMwJlW\nUceIUOxG1MBsSitvb7TJZf7VjKkuraruNpTjCLJU9xLukFL9ZYmeTd5qPrU6\nxDAvSjw5BbLZZU1TFPTNUaUyr3FjNni1Dn7w5U87hx0uRnePEiM6N8bikg1N\navOAGmLiwj3IfQS/ziUEc6bFqFLBar+JikEPn7r2NgK/XGnGkapb6BmLa5w+\n+ioPGDJaq/Gpj9COGDdPvMJzvIMEAXcIJrsOygWCZa1UaPDmgputjrKrkRTp\nj1g6TQXbUaunGjf7yibDGFKPG9251uq6T9bUKcBBhTBJvstp8N8mtUIR/hPQ\nIXVSbaREst9HAwcpF7k/HUStvxi4UnslwnXmhS/ctv4rGUcCRgdomuM/AX9j\nlQgA\r\n=WlJz\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDpXa/Nhw75OntAXi7Xmx93XfbEkg90lhxPFk/l+QIlsAiEA+xyjNlcFzxh3ufWeE4Q3GZpmHjg3GNc9oKt1FNs7JQU="}]},"maintainers":[{"name":"asefux","email":"contact@asefux.com"}],"_npmUser":{"name":"asefux","email":"contact@asefux.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/exchange-rates_1.0.1_1591261696716_0.5633708118553535"},"_hasShrinkwrap":false},"1.1.0":{"name":"@asefux/exchange-rates","version":"1.1.0","description":"aggregates currency exchange rates from multiple central banks","main":"index.js","scripts":{"lint":"eslint . --ext .js","lint:fix":"eslint . --ext .js --fix","test":"echo \"Error: no test specified\" && exit 1"},"keywords":["currency","exchange rates"],"repository":{"type":"git","url":"git+https://github.com/asefux/exchange-rates.git"},"author":"","license":"UNLICENSED","bugs":{"url":"https://github.com/asefux/exchange-rates/issues"},"homepage":"https://github.com/asefux/exchange-rates#readme","devDependencies":{"eslint":"^7.1.0","eslint-config-airbnb-base":"^14.1.0","eslint-plugin-import":"^2.20.2"},"dependencies":{"@asefux/common":"^1.4.0-a1","got":"^11.2.0","xml-js":"^1.6.11"},"gitHead":"f5ff76d3357ff6e95329b840c3d1710cb9d05b60","_id":"@asefux/exchange-rates@1.1.0","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-DJAfMCWp/KJPYb28PUHto1YafQvGscTj0Mj8evyaSIcFGfWx5cJQBoSjNTDg3fVxjEDAXNu0nycQHx52foXEig==","shasum":"46144ec2f12cf9b006c91f71fff33bc0553f2db1","tarball":"https://registry.npmjs.org/@asefux/exchange-rates/-/exchange-rates-1.1.0.tgz","fileCount":15,"unpackedSize":22422,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe2M6dCRA9TVsSAnZWagAA99wP/01e0clh1sx/vjTs/5Eb\n6YiE0X4F27dJP05x1/wXNti9iAu37DcMjbKCQY0IrZciocLYaWpUPGfKk5Xf\n/8RwZxlNNEhfsq8EXyeVzUmkO1hfv/XBKg1NP8L99qC3cu9z8UOh0qDEq8W0\nR0HAE+EE8fVtTqu7tynbSfAP9nj2Pd6hty6lAv9xAJ+ZpqzW6nqb4pC5qJAw\nttDODY1jhPb35fMf989xCmP8rx1pS+zIXIvwtU6fJiqmkmrzdqIK1aj3ITss\naOiWwQFHnkwZG1gn6tBpBpv2chsP5WvDeORsIrhWMMnd60yqy7YleqyjIKgQ\nuoD5k8w/iww5jbPn8cslKslvibuxlLUNFkvV9YrsNoWUZSpBN9AEr7R2MXgO\nbDkHF1y+6StqrQPrL/TmM/CmOjky4+dG800ITgyY53VTf7YWVb+p0FZCF2u4\njFx846t3GHXqwVkztJd8/AKS36AlQMx7YyteV/k0jW21xqwwwFrVTO7OYey4\niwYRsNzzEzlzk0g2uZSr6Ec4gHeKlA8u9UNqR4eAGmV329SnOSAdMlBvAqg/\nSIw5hAXfU+rXjZTrT+rw4nx65koVIZfd6LdKzlra/rWKqNtxygApsBUVHYUw\niYoytpR29Qh3kPiKW4HkmmEg9aIhBBT5OM1AdQMRcquIIQtJw6UQyfRNy6NL\nHELp\r\n=H4qH\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCtinatDRs08YAD6wZvoQbHnx0YeXLogNfaK8e3AMyjUAIgCF62JCkK44pVNOTKlnHcRGkNuDmfr6pTZMeGWTuuBUs="}]},"maintainers":[{"name":"asefux","email":"contact@asefux.com"}],"_npmUser":{"name":"asefux","email":"contact@asefux.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/exchange-rates_1.1.0_1591266972861_0.11846243249176802"},"_hasShrinkwrap":false},"1.1.1":{"name":"@asefux/exchange-rates","version":"1.1.1","description":"aggregates currency exchange rates from multiple central banks","main":"index.js","scripts":{"lint":"eslint . --ext .js","lint:fix":"eslint . --ext .js --fix","test":"echo \"Error: no test specified\" && exit 1"},"keywords":["currency","exchange rates"],"repository":{"type":"git","url":"git+https://github.com/asefux/exchange-rates.git"},"author":"","license":"UNLICENSED","bugs":{"url":"https://github.com/asefux/exchange-rates/issues"},"homepage":"https://github.com/asefux/exchange-rates#readme","devDependencies":{"eslint":"^7.1.0","eslint-config-airbnb-base":"^14.1.0","eslint-plugin-import":"^2.20.2"},"dependencies":{"@asefux/common":"^1.4.0-a1","got":"^11.2.0","xml-js":"^1.6.11"},"gitHead":"03643fe52d22898cbdfe58c4d22b10ba972ad1db","_id":"@asefux/exchange-rates@1.1.1","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-VcZSyfWMU75AAteigY8ZD1dUI5HFnR1RpKzCLspmOhbZkoOupFwxW9nqig4d6T7b7WvVhLRgE/y4JVjxuiPOLA==","shasum":"e9ea8031d4226aac36fe109b2c532c628c6d8d68","tarball":"https://registry.npmjs.org/@asefux/exchange-rates/-/exchange-rates-1.1.1.tgz","fileCount":15,"unpackedSize":23128,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe5wbZCRA9TVsSAnZWagAAQcUQAIMyZGix4Owkkt9qxNDO\nKXDpz/JuFgrCkmGJSqJkG2WGhcXouLIAfpTeawwGfwSd4Kz3Kvq8RlwC/jbO\n6KiE8JdpAF9r16i3aFQrc2V1FMxetFxjT2Vy6x4jfhK0RA1Q1adzYaIVAKrY\nzlPT3rs/XfvUcpv9dkLlC6B2x93KdPLr0BTuXdBO1g6p6VerXIVvog1UOT7k\n5Li97svjUyNlF8P8Ep0Tj7tAzdj2yJPi98SNjEcP6ZKs5J/hxrr6WRBCE9rC\n4YYih8ehAqR/PEY66hKatjaav9GJrdjTmtszchFFUfT9m3lGNXPEub2vb6pm\ncJYaiirIg/V7SbOkGn1eC7DjI18n0GUrrpPGz96onA/CcV8cJwfhmMvBmzbL\nXzqSzmzGoz3MNqDz7/Y/S6PQH6/MJ9+ZKyvxf1vRnRHZAyXnKyB5kDiMvDxt\ngl348iXKc6U4hFeN8R34Al/NttSMmUuGkTZVjgN5KIgX+OpXrwr1VHmxtlDq\n+gnkAKxvitGO+tsd9a6m8zyXwzlUJE08laQxWW+tVMz0diYzfs+WagK31UtR\nNpRDUOXCImG4zaVA7UZuydMmBPvNwg9SkugvpFnlCJ8kkZcGh/kVz7/fh0DE\nMahEjD0kpOPk4KHqU7jg51GMI97JTAT/KDTCkUQaqaos9S1eWtxVK8qVMGI2\n6im8\r\n=Gmo3\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDI7By/N3hriVMJfpL3xJpyP2TKYTiNIpBSf8s0qQXwuAiAjHr+Y025ZPx0EenLOxMHJhse6w/qIGo4lofhGWNvSJw=="}]},"maintainers":[{"name":"asefux","email":"contact@asefux.com"}],"_npmUser":{"name":"asefux","email":"contact@asefux.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/exchange-rates_1.1.1_1592198872814_0.31976158761524487"},"_hasShrinkwrap":false}},"time":{"created":"2020-06-04T07:29:52.138Z","1.0.0":"2020-06-04T07:29:52.269Z","modified":"2022-04-04T15:44:34.089Z","1.0.1":"2020-06-04T09:08:17.052Z","1.1.0":"2020-06-04T10:36:12.985Z","1.1.1":"2020-06-15T05:27:52.926Z"},"maintainers":[{"name":"asefux","email":"contact@asefux.com"}],"description":"aggregates currency exchange rates from multiple central banks","homepage":"https://github.com/asefux/exchange-rates#readme","repository":{"type":"git","url":"git+https://github.com/asefux/exchange-rates.git"},"bugs":{"url":"https://github.com/asefux/exchange-rates/issues"},"license":"UNLICENSED","readme":"# @asefux/exchange-rates\n\ngather exchange-rates from muiltiplie national banks\n\n\n## Usage\n\n```javascript\nconst ExchangeRates = require('@asefux/exchange-rates');\n\nconst exchangeRates = ExchangeRates();\n\nexchangeRates.matrix()\n.then((ratesMatrix)=>{\n        console.log(JSON.stringify(ratesMatrix, null, 2));\n});\n\nexchangeRates.rate(10, 'eur', 'usd').then(console.log); // will output how much USD is 10 EUR\n\n\n\n```\nRates matrix of this format\n\n```javascript\n\n{\n        [base]: {\n                [quote]: price\n        }\n}\n// how much quote would you get for 1 unit of base\n```\n\n## Sources\n\n- [x] [Bank of Canada / Banqueu du Canada](https://www.bankofcanada.ca/)\n- [x] [Danmark National Bank](http://www.nationalbanken.dk/en)\n- [x] [Bank of Estonia / Eesti Pank](https://eestipank.ee/en)\n- [x] [Bank of Sweden / Sveriges Riksbank](https://www.riksbank.se/en-gb/)\n- [x] [Bank of Norway / Norges Bank](https://www.norges-bank.no/en/)\n- [x] [European Central Bank](https://ecb.europa.eu)\n- [x] [Bank of Romania / Banca Nationala a Romaniei](https://www.bnro.ro/Home.aspx)\n- [x] [Bank of Bulgaria](http://www.bnb.bg/?toLang=_EN)\n- [ ] [Bank of Hungary / Magyar Nemzeti Bank](https://www.mnb.hu/en/)\n- [ ] [Bank of Netherlands / De Nederlandsche Bank](https://www.dnb.nl/en/)\n- [ ] [Bank of England](https://www.bankofengland.co.uk/)\n- [ ] [Bank of France / Banque de France](https://www.banque-france.fr/en)\n- [ ] [Bank of Spain / Banco de Espana](https://www.bde.es/bde/en/)\n- [ ] [Bank of Portugal / Banco de Portugal](https://www.bportugal.pt/en)\n- [ ] [Bank of Italy / Banca d'Italia](https://www.bancaditalia.it/)\n- [ ] [Bank of Germany / Deutsche Bundesbank](https://www.bundesbank.de/en/)\n- [ ] [Bank of Slovenia / Banka Slovenije](https://www.bsi.si/en/)\n- [ ] [Bank of Czech Republic / Ceska Narodni Banka](https://www.cnb.cz/en/index.html)\n- [ ] [Bank of Lithuania / Lietuvos Bankas](https://www.lb.lt/)\n- [ ] [Bank of Latvia / Latvijas Banka](https://www.bank.lv/en/)\n- [ ] [Bank of Slovakia / Narodna Banka Slovenska](https://www.nbs.sk/en/home)\n- [ ] [Bank of Poland / Narodowy Bank Polski](https://www.nbp.pl/)\n- [ ] [Bank of Croatia / Hrvatska Narodna Banka](https://www.hnb.hr/home)\n- [ ] [Bank of Serbia ](https://www.nbs.rs/internet/english)\n- [ ] [Bank of Greece](https://www.bankofgreece.gr/en/homepage)\n- [ ] [Bank of Ireland / Banc Ceannais na heireann](https://www.centralbank.ie/)\n- [ ] [Bank of Malta / Bank Centrali ta'Malta](https://www.centralbankmalta.org/)\n- [ ] [Bank of Cyprus](https://www.centralbank.cy/en/home)\n- [ ] [Bank of Luxembourg / Banque Centrale du Luxembourg](http://www.bcl.lu/en/index.html)\n- [ ] [Bank of Belgium / Banque Nationale de Belgique / Bank van Belgie](https://www.nbb.be/en)\n- [ ] [Bank of Austria / Oesterreichische Nationalbank](https://www.oenb.at/en/)\n- [ ] [Bank of Bosnia and Herzegovina / Centralna Banka Bosne I Hergegovine](https://www.cbbh.ba/?lang=en)\n- [ ] [Bank of Australia](https://www.rba.gov.au/)\n- [ ] [Bank of Albania / Banka e Shqiperise](https://www.bankofalbania.org/home/)\n- [ ] [Bank of Armenia ](https://www.cba.am/en/sitepages/default.aspx)\n- [ ] [Bank of Belarus](http://www.nbrb.by/engl/)\n- [ ] [Bank of Argentina / Banco Central de la Republica Argentina](http://www.bcra.gob.ar/default.asp)\n- [ ] [Central Bank of Brasil / Banco Central Do Brasil](https://www.bcb.gov.br/en)\n- [ ] [Bank of Chile / Banco Central de Chile](https://www.bcentral.cl/en/web/banco-central)\n\n---\n\n- [ ] [Bank of Finland / Suomen Pankki](https://www.suomenpankki.fi/en/) - same as ECB\n\n- [ ] [Others](https://www.bis.org/cbanks.htm)\n\n\n\n# Changes\n\n| Version     |   Changes       |\n|-------------|-----------------|\n| 1.0.0       | initial code    |\n| 1.0.1       | update api      |\n| 1.1.0       | Bank of Bulgaria|\n| 1.1.1       | on weekends get rates of last working day|\n","readmeFilename":"README.md","keywords":["currency","exchange rates"]}