Bitcoin Forum
April 26, 2024, 03:26:06 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: [ANN] bitstamp-api an API wrapper for Bitstamp (Node.JS)  (Read 1110 times)
5an1ty (OP)
Newbie
*
Offline Offline

Activity: 48
Merit: 0


View Profile
August 25, 2014, 08:52:06 AM
Last edit: August 25, 2014, 07:27:29 PM by 5an1ty
 #1

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.
1714101966
Hero Member
*
Offline Offline

Posts: 1714101966

View Profile Personal Message (Offline)

Ignore
1714101966
Reply with quote  #2

1714101966
Report to moderator
1714101966
Hero Member
*
Offline Offline

Posts: 1714101966

View Profile Personal Message (Offline)

Ignore
1714101966
Reply with quote  #2

1714101966
Report to moderator
The forum strives to allow free discussion of any ideas. All policies are built around this principle. This doesn't mean you can post garbage, though: posts should actually contain ideas, and these ideas should be argued reasonably.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1714101966
Hero Member
*
Offline Offline

Posts: 1714101966

View Profile Personal Message (Offline)

Ignore
1714101966
Reply with quote  #2

1714101966
Report to moderator
1714101966
Hero Member
*
Offline Offline

Posts: 1714101966

View Profile Personal Message (Offline)

Ignore
1714101966
Reply with quote  #2

1714101966
Report to moderator
whydifficult
Sr. Member
****
Offline Offline

Activity: 287
Merit: 250



View Profile WWW
August 26, 2014, 12:47:03 PM
 #2

(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)

Gekko a nodejs bitcoin trading bot!
Realtime Bitcoin Globe - visualizing all transactions and blocks
Tip jar (BTC): 1KyQdQ9ctjCrGjGRCWSBhPKcj5omy4gv5S
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!