Nondeterministic Polynomial Munchies
    Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

    bitstamp-wspublic

    bitstamp-ws

    Nodejs Wrapper for the Bitstamp WebSocket API.

    Howto

    Install:

    npm install bitstamp-ws
    

    Use:

    var Bitstamp = require('bitstamp-ws');
    
    var ws = new Bitstamp();
    ws.on('trade', function(trade) {
      console.log('new trade:', trade);
    });
    ws.on('data', function(data) {
      console.log('new order book event:', data);
    });
    

    And check out the example in example.js for full configuration and all available channels.

    Reference

    Bitstamp WebSocket API documentation: https://www.bitstamp.net/websocket/

    install

    npm i bitstamp-ws

    Downloadsweekly downloads

    31

    version

    0.1.1

    license

    MIT

    repository

    githubgithub

    last publish

    collaborators

    • avatar