Skip to content

Commit

Permalink
small tweak
Browse files Browse the repository at this point in the history
  • Loading branch information
frosty00 committed May 31, 2018
1 parent a946bdc commit c6a8c4b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion js/gateio.js
Expand Up @@ -455,7 +455,10 @@ module.exports = class gateio extends Exchange {

async fetchOpenOrders (symbol = undefined, since = undefined, limit = undefined, params = {}) {
await this.loadMarkets ();
let market = this.market (symbol);
let market = undefined;
if (typeof symbol !== 'undefined') {
market = this.market (symbol);
}
let response = this.privatePostOpenOrders ();
return this.parseOrders (response['orders'], market, since, limit);
}
Expand Down

0 comments on commit c6a8c4b

Please sign in to comment.