coin-rates

1.2.0 • Public • Published

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.

/coin-rates/

    Package Sidebar

    Install

    npm i coin-rates

    Weekly Downloads

    5

    Version

    1.2.0

    License

    MIT

    Unpacked Size

    12.6 kB

    Total Files

    11

    Last publish

    Collaborators

    • chill1