Skip to content

Commit

Permalink
Merge pull request #3027 from frosty00/lbank-tticker
Browse files Browse the repository at this point in the history
lbank fetchTickers getting a KeyError
  • Loading branch information
kroitor committed Jun 4, 2018
2 parents e22eba2 + 38231a5 commit f3be975
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions js/lbank.js
Expand Up @@ -190,9 +190,11 @@ module.exports = class lbank extends Exchange {
for (let i = 0; i < tickers.length; i++) {
let ticker = tickers[i];
let id = ticker['symbol'];
let market = this.marketsById[id];
let symbol = market['symbol'];
result[symbol] = this.parseTicker (ticker, market);
if (id in this.marketsById) {
let market = this.marketsById[id];
let symbol = market['symbol'];
result[symbol] = this.parseTicker (ticker, market);
}
}
return result;
}
Expand Down

0 comments on commit f3be975

Please sign in to comment.