Author

Topic: [ANN] bitstamp-api an API wrapper for Bitstamp (Node.JS) (Read 1129 times)

sr. member
Activity: 287
Merit: 250
(askmike here) awesome stuff! I want to be more active again, so we might be able to merge the projects (unless you want to keep it seperated)
newbie
Activity: 48
Merit: 0
bitstamp-api
The current Bitstamp API implementations in node.js work great, but they tend to throw uncaught exceptions that break your application. I am dedicated to maintaining a stable alternative that will return every possible error to a callback you provide.

Installation
Code:
npm install bitstamp-api

Usage
Code:
var Bitstamp = require('bitstamp-api');
var api = new Bitstamp();

api.transactions({time: 'minute'}, function(err, result) {
    if(!err) {
        console.log(result);
    } else {
        console.log(err);
    }
}

FAQ
Q: I currently use askmike's bitstamp package, is it easy to switch to bitstamp-api?
A: Yes, just require bitstamp-api instead of bitstamp. All functions should have the same syntax as the bitstamp package.

Q: I often receive invalid nonce / invalid signature errors, how do I fix that?
A: Generate a new API key on the Bitstamp website.

GitHub Repository
https://github.com/5an1ty/bitstamp-api

Credits
Askmike: for writing the original bitstamp API implementation in Node.JS.
Jump to: