Skip to content

Simple wrapper for ticker queries to a few common bitcoin exchanges.

Notifications You must be signed in to change notification settings

reecer/node-btc-ticker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

node-btc-ticker

Simple wrapper for ticker queries to a few common bitcoin exchanges. Currently only supports USD.

Supported Exchanges

  • MtGox
  • BTC-e
  • Bitfinex
  • Bitstamp
  • CampBX
  • Coinbase

Market Object

{
  name: 'GOX',
  base: 'http://data.mtgox.com/api/1/',
  timeout: 10000,
  api: { ticker: [Function] }
}

Example Usage

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
}); 

Testing

nodeunit test/test.js

About

Simple wrapper for ticker queries to a few common bitcoin exchanges.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published