From d1cdb8a30c2aed92ea32fa8c447c02aa2aad9da7 Mon Sep 17 00:00:00 2001 From: Matthias Date: Sun, 24 Jul 2022 10:55:37 +0200 Subject: [PATCH] Remove TODO from freqtradebot --- freqtrade/freqtradebot.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/freqtrade/freqtradebot.py b/freqtrade/freqtradebot.py index 7381980b9..c9e08bf69 100644 --- a/freqtrade/freqtradebot.py +++ b/freqtrade/freqtradebot.py @@ -1397,9 +1397,8 @@ class FreqtradeBot(LoggingMixin): # TODO: figure out how to handle partially complete sell orders reason = constants.CANCEL_REASON['PARTIALLY_FILLED_KEEP_OPEN'] cancelled = False - # TODO: This should probably fetch the correct order from database - # instead of parsing it again - order_obj = Order.parse_from_ccxt_object(order, trade.pair, trade.exit_side) + + order_obj = trade.select_order_by_order_id(order['id']) sub_trade = order_obj.amount != trade.amount self._notify_exit_cancel( trade,