An unofficial node.js client for the bitcoincharts.com markets api.
JavaScript
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
LICENSE.txt
README.md
bitcoincharts.js
package.json

README.md

node-bitcoincharts

An unofficial node.js client for the bitcoin charts markets api.

Installation

node-bitcoincharts is available as bitcoincharts on npm.

npm install bitcoincharts

Usage

var BitcoinCharts = require('bitcoincharts'),
    bitcoinCharts = new BitcoinCharts();

bitcoinCharts.weightedPrices(function(err, data) {
  if (err) {
    throw err;
  }

  console.log(data);
});

bitcoinCharts.markets(function(err, data) {
  if (err) {
    throw err;
  }

  console.log(data);
});

bitcoinCharts.trades({ "symbol": "btceUSD", "start": 1397322000, "end": 1397324000 }, function(err, data) {
  if (err) {
    throw err;
  }

  console.log(data);
}); 

License

This module is ISC licensed.