Skip to content

Commit

Permalink
minor edits to gemini fetchOpenOrders
Browse files Browse the repository at this point in the history
  • Loading branch information
kroitor authored Jul 17, 2018
1 parent 74a2548 commit b9f6ac6
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions js/gemini.js
Original file line number Diff line number Diff line change
Expand Up @@ -281,9 +281,8 @@ module.exports = class gemini extends Exchange {
let response = await this.privatePostOrders (params);
let orders = this.parseOrders (response, undefined, since, limit);
if (typeof symbol !== 'undefined') {
if (!(symbol in this.markets))
throw new ExchangeError (this.id + ' has no symbol ' + symbol);
orders = this.filterBySymbol (orders, symbol);
let market = this.market (symbol); // throws on non-existent symbol
orders = this.filterBySymbol (orders, market['symbol']);
}
return orders;
}
Expand Down

0 comments on commit b9f6ac6

Please sign in to comment.