Skip to content

A JavaScript Module that allows you to get Crypto Currency price to Local Currency.

License

Notifications You must be signed in to change notification settings

0xDaksh/crypto-price

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

A JavaScript Module that allows you to get Crypto Currency price to Local Currency.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages