Simple Node.js wrapper for btc-e.com exchange trade API.
This module requires request, the included hmac-sha512.js file, and querystring.
Run $npm install request querystring
in your work directory,
then add var btce = require('./node.btce.js');
to your working file.
A file called 'scratch.js' with a small public example has been included.
For private calls, add your trade key and private key to node.btc.js. To make a call, first setup parameters:
var params = {
nonce: 90,
pair: btc_usd
};
Then make the call:
btce.activeorders(params, function(data){
console.log(data);
});
I also made a dead simple nonce counter to help with my private calls.
- Package and make available via NPM.
- Flush out rest of v3 public API.