Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

coin-rates

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

coin-rates

Fetch currency exchange rate for coin/fiat currency pairs

  • 1.1.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
14
increased by600%
Maintainers
1
Weekly downloads
 
Created
Source

coin-rates

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

  • Installation
  • Usage
  • Tests
  • Changelog
  • License

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.

FAQs

Package last updated on 04 Dec 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc