Bitcoin Forum

Bitcoin => Project Development => Topic started by: 5an1ty on August 25, 2014, 08:52:06 AM



Title: [ANN] bitstamp-api an API wrapper for Bitstamp (Node.JS)
Post by: 5an1ty on August 25, 2014, 08:52:06 AM
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.


Title: Re: [ANN] bitstamp-api an API wrapper for Bitstamp (Node.JS)
Post by: whydifficult on August 26, 2014, 12:47:03 PM
(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)