Socket
Socket
Sign inDemoInstall

coin-rates

Package Overview
Dependencies
1
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    coin-rates

Fetch currency exchange rate for coin/fiat currency pairs


Version published
Weekly downloads
5
decreased by-61.54%
Maintainers
1
Created
Weekly downloads
 

Readme

Source

coin-rates

Build Status

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

Last updated on 28 Sep 2023

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc