Skip to content

Commit

Permalink
Fixed depth cache reconnect with multiple symbols (Thanks mstijak)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jon Eyrick authored Jan 8, 2018
1 parent 69ec9eb commit 830f93d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion node-binance-api.js
Original file line number Diff line number Diff line change
Expand Up @@ -645,7 +645,7 @@ LIMIT_MAKER
depthCache[symbol] = {bids: {}, asks: {}};
messageQueue[symbol] = [];
let reconnect = function() {
if ( options.reconnect ) depthCacheFunction(symbol, callback);
if ( options.reconnect ) depthCacheFunction([symbol], callback);
};
subscribe(symbol.toLowerCase()+'@depth', function(depth) {
if ( !info[symbol].firstUpdateId ) {
Expand Down

0 comments on commit 830f93d

Please sign in to comment.