Skip to content

fatcathq/ws-orderbook

Folders and files

NameName
Last commit message
Last commit date
May 17, 2019
Mar 29, 2019
Jan 9, 2019
Mar 16, 2019
Mar 29, 2019
May 16, 2019
May 16, 2019
May 14, 2019
Dec 20, 2018
Dec 20, 2018
Jan 11, 2019

Repository files navigation

ws-orderbook

Installation

npm install ws-orderbook

Usage

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));
});

Supported Exchanges

  • Bittrex
  • Poloniex