Skip to content

bleskomat/coin-rates-node

Repository files navigation

coin-rates

Build Status

Fetch currency exchange rate for a coin/fiat currency pair in nodejs.

Installation

Add to your application via npm:

npm install coin-rates --save

This will install coin-rates and add it to your application's package.json file.

Usage

const coinRates = require('coin-rates');

coinRates.get({
	provider: 'kraken',
	currencies: {
		from: 'BTC',
		to: 'EUR',
	},
}).then(rate => {
	console.log(rate);
}).catch(error => {
	console.error(error);
})

Tests

Run automated tests as follows:

npm test

Changelog

See CHANGELOG.md

License

This software is MIT licensed:

A short, permissive software license. Basically, you can do whatever you want as long as you include the original copyright and license notice in any copy of the software/source. There are many variations of this license in use.

About

Fetch currency exchange rate for coin/fiat currency pairs in nodejs

Resources

License

Stars

Watchers

Forks

Packages

No packages published