1.2.0 • Published 2 years ago

coin-rates v1.2.0

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

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.

1.2.0

2 years ago

1.1.1

3 years ago

1.1.0

4 years ago

1.0.0

4 years ago