btcxr is a wrapper around the Blockchain api ticker method
$ npm install btcxr -g
bitcoin JPY
//=> JPY: ¥28930.17
$ npm install --save btcxr
var btcxr = require('btcxr');
function bitcoinCallback(bitcoin){
console.log('GBP: ' + bitcoin.symbol + bitcoin.last);
}
btcxr("GBP", bitcoinCallback);
Required
Type: string
Possible values: USD,ISK,HKD,TWD,CHF,EUR,DKK,CLP,CAD,CNY,THB,AUD,SGD,KRW,JPY,PLN,GBP,SEK,NZD,BRL,RUB
Defaults to: USD
Type: function
bitcoin properties:
- 15m
- last
- buy
- sell
- symbol
MIT © afj176