From 4c68bec171c2849afbb5363d9e9bd48d178de854 Mon Sep 17 00:00:00 2001 From: Matthias Date: Mon, 25 Jul 2022 17:47:52 +0200 Subject: [PATCH] Fix problem in `is_cancel_order_result_suitable` fixes #7119 --- freqtrade/exchange/exchange.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/freqtrade/exchange/exchange.py b/freqtrade/exchange/exchange.py index 11e37b953..79bc769e6 100644 --- a/freqtrade/exchange/exchange.py +++ b/freqtrade/exchange/exchange.py @@ -1264,7 +1264,7 @@ class Exchange: return False required = ('fee', 'status', 'amount') - return all(k in corder for k in required) + return all(corder.get(k, None) is not None for k in required) def cancel_order_with_result(self, order_id: str, pair: str, amount: float) -> Dict: """