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.