Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/gtklocker/bittrex-orderbook

Follow the bittrex.com orderbook in real time
https://github.com/gtklocker/bittrex-orderbook

bitcoin bittrex cryptocurrencies orderbook realtime websockets

Last synced: 3 months ago
JSON representation

Follow the bittrex.com orderbook in real time

Awesome Lists containing this project

README

        

# bittrex-orderbook

[![](https://img.shields.io/npm/v/bittrex-orderbook.svg)](https://www.npmjs.com/package/bittrex-orderbook)

## Installation

```
npm install bittrex-orderbook
```

## Usage

```javascript
const BittrexOrderBook = require('bittrex-orderbook');
const bit = new BittrexOrderBook;

bit.market('BTC-XMR').on('bidUpdate', (market) => {
console.log('XMR bids', market.bids.top(5));
});
bit.market('BTC-ETH').on('askUpdate', (market) => {
console.log('ETH asks', market.asks.top(5));
});
```