crypto-price
A Node.js Module that allows you to convert Crypto Currency price to Local Currency
Last updated a year ago by dakshmiglani .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install crypto-price 
SYNC missed versions from official npm registry.

Crypto-Price

Crypto Price is a Node.js Module that provides an Easy API which allows users to easily get crypto currency price in their Local / Base Currency and returns a Promise that gives you the price.

Supported Crypto Currencies

  • Ethereum (ETH)
  • Bitcoin (BTC)
  • Litecoin (LTC)
  • Monero (XMR)
  • Ripple (XRP)
  • ZCash (ZEC)
  • Many More (Here's a list of them.)

API (with Example)

getCryptoPrice

The getCryptoPrice allows you to get the price of crypto currency from your base currency.


let price = require('crypto-price')
price.getCryptoPrice(base, crypto).then(obj => { // Base for ex - USD, Crypto for ex - ETH 
	console.log(obj.price)
}).catch(err => {
	console.log(err)
})

getBasePrice

The getBasePrice allows you to get the price of base currency from your crypto currency.


let price = require('crypto-price')
price.getBasePrice(base, crypto).then(obj => { // Base for ex - USD, Crypto for ex - ETH 
	console.log(obj.price)
}).catch(err => {
	console.log(err)
})

License

Copyright Daksh Miglani, Licensed Under MIT 2017.

Current Tags

  • 0.0.6                                ...           latest (a year ago)

6 Versions

  • 0.0.6                                ...           a year ago
  • 0.0.5                                ...           a year ago
  • 0.0.4                                ...           2 years ago
  • 0.0.3                                ...           2 years ago
  • 0.0.2                                ...           2 years ago
  • 0.0.1                                ...           2 years ago
Maintainers (1)
Downloads
Today 0
This Week 1
This Month 8
Last Day 0
Last Week 6
Last Month 5
Dependencies (1)
Dev Dependencies (0)
None

Copyright 2014 - 2017 © taobao.org |