From 639987cbabc8ae969f280639ffa856af99402064 Mon Sep 17 00:00:00 2001 From: Matthias Date: Mon, 20 Mar 2023 18:19:17 +0100 Subject: [PATCH] Prevent parameter reuse --- freqtrade/exchange/okx.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/freqtrade/exchange/okx.py b/freqtrade/exchange/okx.py index 3110d8189..162630ea5 100644 --- a/freqtrade/exchange/okx.py +++ b/freqtrade/exchange/okx.py @@ -197,11 +197,11 @@ class Okx(Exchange): return order_reg except ccxt.OrderNotFound: pass - params1 = {'stop': True, 'ordType': 'conditional'} + params2 = {'stop': True, 'ordType': 'conditional'} for method in (self._api.fetch_open_orders, self._api.fetch_closed_orders, self._api.fetch_canceled_orders): try: - orders = method(pair, params=params1) + orders = method(pair, params=params2) orders_f = [order for order in orders if order['id'] == order_id] if orders_f: order = orders_f[0]