0.0.3 • Published 6 years ago

bittrex-ws v0.0.3

Weekly downloads
3
License
MIT
Repository
github
Last release
6 years ago

bittrex-ws

Small library to get updates from the beta version of Bittrex web sockets (https://github.com/Bittrex/beta/blob/master/README.md).

Install:

npm install --save bittrex-ws

Usage:

const bittrex = BittrexWs();

bittrex.connect(client => {

  // Orderbook of a single market.
  client.getOrderBook('BTC-ETH', data => {
      console.log(data);
  });

  // Orderbook of an array of markets.
  client.getOrderBook(['BTC-ETH', 'BTC-XRP'], data => {
      console.log(data);
  });

  client.getSummaryDeltas(data => {
      console.log(data);
  });

  client.getSummaryDeltasLite(data => {
      console.log(data);
  });

});

Take a look in examples.

Todo.

Add authenticate endpoints.

Disclaimer.

Use it at your own risk.

0.0.3

6 years ago

0.0.2

6 years ago

0.0.1

6 years ago