1 | node-bitcoincharts
|
2 | =====
|
3 |
|
4 | An unofficial node.js client for the [bitcoin charts markets api](http://bitcoincharts.com/about/markets-api/).
|
5 |
|
6 | ## Usage
|
7 |
|
8 | ```javascript
|
9 | var BitcoinCharts = require('bitcoincharts'),
|
10 | bitcoinCharts = new BitcoinCharts();
|
11 |
|
12 | bitcoinCharts.weightedPrices(function(err, data) {
|
13 | if (err) {
|
14 | throw err;
|
15 | }
|
16 |
|
17 | console.log(data);
|
18 | });
|
19 |
|
20 | bitcoinCharts.markets(function(err, data) {
|
21 | if (err) {
|
22 | throw err;
|
23 | }
|
24 |
|
25 | console.log(data);
|
26 | });
|
27 |
|
28 | bitcoinCharts.trades({ "symbol": "mtgoxUSD", "start": 1365670800, "end": 1365670860 }, function(err, data) {
|
29 | if (err) {
|
30 | throw err;
|
31 | }
|
32 |
|
33 | console.log(data);
|
34 | });
|
35 | ```
|
36 |
|
37 | ## License
|
38 |
|
39 | This module is [ISC licensed](https://github.com/pskupinski/node-bitcoincharts/blob/master/LICENSE.txt).
|