Simple wrapper for ticker queries to a few common bitcoin exchanges. Currently only supports USD.
- MtGox
- BTC-e
- Bitfinex
- Bitstamp
- CampBX
- Coinbase
{
name: 'GOX',
base: 'http://data.mtgox.com/api/1/',
timeout: 10000,
api: { ticker: [Function] }
}
var markets = require('btc-ticker');
// List known markets
markets.forEach(function(m){ console.log(m.name) })
/*
CNBS
BTCe
GOX
...
*/
markets.CNBS.api.ticker(function(err, data){
// Raw ticker data from market's api
});
nodeunit test/test.js