Skip to content
This repository has been archived by the owner on Feb 15, 2022. It is now read-only.

Fix issue #1664: Error 'Invalid end time.' on Poloniex #1666

Merged
merged 1 commit into from
Jul 19, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions extensions/exchanges/poloniex/exchange.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,11 +60,11 @@ module.exports = function container (conf) {
}
if (args.start && !args.end) {
// add 12 hours
args.end = args.start + opts.offset
args.end = args.start + (opts.offset || this.offset)
}
else if (args.end && !args.start) {
// subtract 12 hours
args.start = args.end - opts.offset
args.start = args.end - (opts.offset || this.offset)
}

client._public('returnTradeHistory', args, function (err, body) {
Expand Down