crypto-price

0.0.6 • Public • Published

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.

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.0.6
    97
    • latest

Version History

Package Sidebar

Install

npm i crypto-price

Weekly Downloads

97

Version

0.0.6

License

MIT

Unpacked Size

4.93 kB

Total Files

6

Last publish

Collaborators

  • dakshmiglani