npm install ws-orderbook
const Streamer = require('ws-orderbook');
const bittrexStreamer = Streamer('bittrex');
bittrexStreamer.market('XMR/BTC').on('bidUpdate', (market) => {
console.log('XMR bids', market.bids.top(5));
});
bittrexStreamer.market('ETH/BTC').on('askUpdate', (market) => {
console.log('ETH asks', market.asks.top(5));
});
- Bittrex
- Poloniex