UNPKG

btcaverage

Version:

Get Bitcoin price average from 13 providers. Doing math variance algorithm: if some service is broken the average not will be broken.

62 lines 1.39 kB
[ { "name": "Btc-e", "url": "https://btc-e.com/api/3/ticker/btc_usd", "path": "btc_usd.buy" }, { "name": "CoinDesk", "url": "http://api.coindesk.com/v1/bpi/currentprice/usd.json", "path": "bpi.USD.rate_float" }, { "name": "CoinBase", "url": "https://coinbase.com/api/v1/prices/buy", "path": "subtotal.amount" }, { "name": "BitStamp", "url": "https://www.bitstamp.net/api/ticker/", "path": "ask" }, { "name": "BlockChain", "url": "https://blockchain.info/es/ticker", "path": "USD.buy" }, { "name": "OKCoin", "url": "https://www.okcoin.com/api/v1/ticker.do?symbol=btc_usd", "path": "ticker.buy" }, { "name": "Bitfinex", "url": "https://api.bitfinex.com/v1/pubticker/btcusd", "path": "ask" }, { "name": "HitBTC", "url": "https://api.hitbtc.com/api/1/public/BTCUSD/ticker", "path": "ask" }, { "name": "CoinTrader", "url": "https://www.cointrader.net/api3/stats/daily", "path": "data.BTCUSD.offer" }, { "name": "LoyalBit", "url": "https://www.loyalbit.com/api/ticker", "path": "ask" }, { "name": "Bitex.la", "url": "https://bitex.la/api-v1/rest/btc/market/ticker", "path": "ask" }, { "name": "RockTrading", "url": "https://www.therocktrading.com/api/tickers/", "path": "result.tickers.BTCUSD.ask" } ]