Skip to content

Commit

Permalink
[GB] allow overwriting the default rate limit
Browse files Browse the repository at this point in the history
  • Loading branch information
askmike committed Oct 19, 2018
1 parent 1dbd521 commit 9f965ac
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion exchange/gekkoBroker.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,13 @@ class Broker {
_.last(p.pair) === config.asset.toUpperCase();
});

this.interval = this.api.interval || 1500;
if(config.customInterval) {
this.interval = config.customInterval;
this.api.interval = config.customInterval;
console.log(new Date, '[GB] setting custom interval to', config.customInterval);
} else {
this.interval = this.api.interval || 1500;
}

this.market = config.currency.toUpperCase() + config.asset.toUpperCase();

Expand Down

0 comments on commit 9f965ac

Please sign in to comment.