Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/gtklocker/bittrex-orderbook
- Owner: gtklocker
- Created: 2017-05-13T17:35:23.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-12-24T20:46:54.000Z (about 6 years ago)
- Last Synced: 2024-10-03T12:39:00.807Z (3 months ago)
- Topics: bitcoin, bittrex, cryptocurrencies, orderbook, realtime, websockets
- Language: JavaScript
- Homepage:
- Size: 80.1 KB
- Stars: 34
- Watchers: 7
- Forks: 6
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
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));
});
```