1 | btc-e
|
2 | =====
|
3 |
|
4 | An unoffocial node.js client for the [btc-e trade api](https://btc-e.com/api/documentation) including public api methods(ticker, trades, depth).
|
5 |
|
6 | ## Usage
|
7 |
|
8 | ```javascript
|
9 | var BTCE = require('btc-e'),
|
10 | btce = new BTCE("YourApiKey", "YourSecret");
|
11 |
|
12 | // Trade API method call.
|
13 | btce.getInfo(function(err, info) {
|
14 | if (err) {
|
15 | throw err;
|
16 | }
|
17 |
|
18 | console.log(info);
|
19 | });
|
20 |
|
21 | // Public API method call.
|
22 | btce.ticker("ltc_btc", function(err, data) {
|
23 | if (err) {
|
24 | throw err;
|
25 | }
|
26 |
|
27 | console.log(data);
|
28 | });
|
29 | ```
|
30 |
|
31 | ## Reference
|
32 |
|
33 | A method-by-method [reference](https://github.com/scud43/btc-e/wiki/API-Reference) is available on the wiki.
|
34 |
|
35 | ## License
|
36 |
|
37 | This module is [ISC licensed](https://github.com/scud43/btc-e/blob/master/LICENSE.txt).
|