Bitcoin Forum
May 11, 2024, 07:20:27 PM *
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.
1715455227
Hero Member
*
Offline Offline

Posts: 1715455227

View Profile Personal Message (Offline)

Ignore
1715455227
Reply with quote  #2

1715455227
Report to moderator
1715455227
Hero Member
*
Offline Offline

Posts: 1715455227

View Profile Personal Message (Offline)

Ignore
1715455227
Reply with quote  #2

1715455227
Report to moderator
Even in the event that an attacker gains more than 50% of the network's computational power, only transactions sent by the attacker could be reversed or double-spent. The network would not be destroyed.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1715455227
Hero Member
*
Offline Offline

Posts: 1715455227

View Profile Personal Message (Offline)

Ignore
1715455227
Reply with quote  #2

1715455227
Report to moderator
1715455227
Hero Member
*
Offline Offline

Posts: 1715455227

View Profile Personal Message (Offline)

Ignore
1715455227
Reply with quote  #2

1715455227
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!