Skip to content

Commit

Permalink
poloniex fetchOHLCv removed redundant this.sum #6490
Browse files Browse the repository at this point in the history
  • Loading branch information
kroitor committed Feb 15, 2020
1 parent 456300b commit 4187d01
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/poloniex.js
Expand Up @@ -228,7 +228,7 @@ module.exports = class poloniex extends Exchange {
if (limit === undefined) {
request['start'] = request['end'] - this.parseTimeframe ('1w'); // max range = 1 week
} else {
request['start'] = request['end'] - this.sum (limit) * this.parseTimeframe (timeframe);
request['start'] = request['end'] - limit * this.parseTimeframe (timeframe);
}
} else {
request['start'] = parseInt (since / 1000);
Expand Down

0 comments on commit 4187d01

Please sign in to comment.