bitcoincharts
v0.0.8
Published
bitcoincharts.com API client for node.js
Downloads
8
Readme
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.