From 5f337fde3988cf06c8adf753e41de8295b55c12b Mon Sep 17 00:00:00 2001 From: Tiago Siebler Date: Thu, 30 Nov 2017 12:18:19 +0000 Subject: [PATCH] Prevent poloniex returnOpenOrders API error from tricking zenbot into order completion (fixes #765). --- extensions/exchanges/poloniex/exchange.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/extensions/exchanges/poloniex/exchange.js b/extensions/exchanges/poloniex/exchange.js index 9c3f43bd00..0c70582bf7 100644 --- a/extensions/exchanges/poloniex/exchange.js +++ b/extensions/exchanges/poloniex/exchange.js @@ -226,8 +226,9 @@ module.exports = function container (get, set, clear) { } var active = false if (!body.forEach) { - console.error('\nreturnOpenOrders odd result:') - console.error(body) + console.error('\nreturnOpenOrders odd result in checking state of order, trying again') + //console.error(body) + return retry('getOrder', args) } else { body.forEach(function (api_order) {