bitstamp-request

0.1.2 • Public • Published

bitstamp-request

Send requests to the Bitstamp API in much the same way you use Mikeal's 'request' module. The key, signature, and nonce parameters are automatically added to every http POST request.

Install

npm install bitstamp-request

Usage

Initialize with the values associated with your account

var Bitstamp = require('bitstamp-request');
var b = new Bitstamp(bitstamp_customer_id, bitstamp_api_key, bitstamp_api_secret);

Now just make http POST requests

b.post('https://www.bitstamp.net/api/buy/', {amount: 100, price:201.50}, function(err, response){
    console.log(response.body);
})

Public api requests also supported

b.get('https://www.bitstamp.net/api/ticker/', function(err, response){
    console.log(response);
})

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.1.2
    0
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.1.2
    0
  • 0.1.1
    0
  • 0.1.0
    0

Package Sidebar

Install

npm i bitstamp-request

Weekly Downloads

0

Version

0.1.2

License

MIT

Last publish

Collaborators

  • jonahss