milianx / node-bitcoincharts

An unofficial node.js client for the bitcoincharts.com markets api.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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": "mtgoxUSD", "start": 1365670800, "end": 1365670860 }, function(err, data) {
  if (err) {
    throw err;
  }

  console.log(data);
}); 

License

This module is ISC licensed.

About

An unofficial node.js client for the bitcoincharts.com markets api.

License:ISC License


Languages

Language:JavaScript 100.0%