From c3e3188c6a66682fb7b9511b8615f0e5fa5087c6 Mon Sep 17 00:00:00 2001 From: Matthias Date: Fri, 20 May 2022 11:30:25 +0200 Subject: [PATCH] Rename variable --- freqtrade/exchange/exchange.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/freqtrade/exchange/exchange.py b/freqtrade/exchange/exchange.py index 4ee9d3f63..06a30c99b 100644 --- a/freqtrade/exchange/exchange.py +++ b/freqtrade/exchange/exchange.py @@ -956,9 +956,9 @@ class Exchange: from freqtrade.persistence import Order order = Order.order_by_id(order_id) if order: - x = order.to_ccxt_object() - self._dry_run_open_orders[order_id] = x - return x + ccxt_order = order.to_ccxt_object() + self._dry_run_open_orders[order_id] = ccxt_order + return ccxt_order # Gracefully handle errors with dry-run orders. raise InvalidOrderException( f'Tried to get an invalid dry-run-order (id: {order_id}). Message: {e}') from e