dparlevliet / node.bittrex.api

Node Bittrex API is an asynchronous node.js library for the Bittrex API, the data can be received either via GET request or Stream.
MIT License
253 stars 100 forks source link

Getting entire orderbook data upon new connection #125

Open jd4ever opened 6 years ago

jd4ever commented 6 years ago

Hi guys, the current code only subscribes to 'updateExchangeState', which only receives changes to the order book. However, it never actually tries to receive the entire order book first so that we can apply the changes to it.

I've added to the code so that it now gets the entire order book data upon connecting. See the modified websocket example.