jaggedsoft / node-binance-api

Node Binance API is an asynchronous node.js library for the Binance API designed to be easy to use.
MIT License
1.58k stars 767 forks source link

depthCache is not maintaining a correct depth cache #248

Closed gavin310 closed 6 years ago

gavin310 commented 6 years ago

Title

Platform:

node version:

Long descrption

code

binance.websockets.depthCache( [ this.token ], ( symbol, depth ) => {
    console.log( depth );
}, 10 );
gavin310 commented 6 years ago

Oops, the problem may be that I wasn't calling binance.sortBids() on the object.

gavin310 commented 6 years ago

Yes, that appears to have been the problem. Sorry for the waste of time.