README
Bitcoin price average
This library uses multiple providers of price for calculate price average in $ (USD), but with one important feature: If some service is broken the average not will be broken. Use a math concept: Variance. BtcAverage uses providers prices calculating variance and discarding the farthest values. This library is resistant for errors of the providers.
Install
$ npm i --save btcaverage
Version
0.0.8
Providers
- Btc-e
- CoinDesk
- CoinBase
- BitStamp
- BlockChain
- OKCoin
- Bitfinex
- HitBTC
- CoinTrader
- LoyalBit
- Bitex.la
- RockTrading
Usage
var btcaverage = require('btcaverage');
btcaverage()
.then(function(priceDetails){
console.log('---- By provider ----');
Object.keys(priceDetails.prices).map(function(providerName){
console.log(providerName + ':