From cfa352ecf2c275ce46defeac53460ef26d5b5c23 Mon Sep 17 00:00:00 2001 From: Matthias Date: Fri, 14 Aug 2020 11:25:20 +0200 Subject: [PATCH] Disable refind_lost_order for now --- freqtrade/freqtradebot.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/freqtrade/freqtradebot.py b/freqtrade/freqtradebot.py index 91adbc598..0dac4d888 100644 --- a/freqtrade/freqtradebot.py +++ b/freqtrade/freqtradebot.py @@ -841,7 +841,8 @@ class FreqtradeBot: except InsufficientFundsError as e: logger.warning(f"Unable to place stoploss order {e}.") # Try refinding stoploss order - self.refind_lost_order(trade) + # TODO: Currently disabled to allow testing without this first + # self.refind_lost_order(trade) except InvalidOrderException as e: trade.stoploss_order_id = None @@ -933,7 +934,8 @@ class FreqtradeBot: logger.info('Trailing stoploss: cancelling current stoploss on exchange (id:{%s}) ' 'in order to add another one ...', order['id']) try: - self.exchange.cancel_stoploss_order(order['id'], trade.pair) + co = self.exchange.cancel_stoploss_order(order['id'], trade.pair) + trade.update_order(co) except InvalidOrderException: logger.exception(f"Could not cancel stoploss order {order['id']} " f"for pair {trade.pair}") @@ -1195,7 +1197,8 @@ class FreqtradeBot: except InsufficientFundsError as e: logger.warning(f"Unable to place order {e}.") # Try refinding "lost" orders - self.refind_lost_order(trade) + # TODO: Currently disabled to allow testing without this first + # self.refind_lost_order(trade) return False order_obj = Order.parse_from_ccxt_object(order, trade.pair, 'sell')