From 3402d2112ba2f8b9bbf8c887f930416f2702b7c7 Mon Sep 17 00:00:00 2001 From: Axel-CH Date: Sun, 2 Sep 2018 08:42:53 +0200 Subject: [PATCH] add missing continue statement in multithreaded loop --- freqtrade/freqtradebot.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/freqtrade/freqtradebot.py b/freqtrade/freqtradebot.py index ea8776d47..82a4fe49d 100644 --- a/freqtrade/freqtradebot.py +++ b/freqtrade/freqtradebot.py @@ -415,6 +415,10 @@ class FreqtradeBot(object): (bidstrat_check_depth_of_market.get('bids_to_ask_delta', 0) > 0): if self._check_depth_of_market_buy(_pair, bidstrat_check_depth_of_market): self.execute_buy(_pair, stake_amount) + else: + continue + else: + self.execute_buy(_pair, stake_amount) client.restart() # restart workers to prevent side effects of memory leaks