From 70780bb01e491945a02f3ba73975a513a95fbad4 Mon Sep 17 00:00:00 2001 From: misagh Date: Fri, 18 Jan 2019 12:02:29 +0100 Subject: [PATCH] using dict.get to fetch interval --- freqtrade/freqtradebot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/freqtrade/freqtradebot.py b/freqtrade/freqtradebot.py index 9b5ab4bba..56b518472 100644 --- a/freqtrade/freqtradebot.py +++ b/freqtrade/freqtradebot.py @@ -667,7 +667,7 @@ class FreqtradeBot(object): if trade.stop_loss > float(order['info']['stopPrice']): # we check if the update is neccesary - update_beat = self.strategy.order_types['stoploss_on_exchange_interval'] + update_beat = self.strategy.order_types.get('stoploss_on_exchange_interval', 60) if (datetime.utcnow() - trade.stoploss_last_update).total_seconds() > update_beat: # cancelling the current stoploss on exchange first logger.info('Trailing stoploss: cancelling current stoploss on exchange '