Skip to content

Commit 650cdf5

Browse files
committed
change to exclude optimize mode
1 parent 7e178cb commit 650cdf5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

freqtrade/exchange/bybit.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
import ccxt
55

66
from freqtrade.constants import BuySell
7-
from freqtrade.enums import TRADE_MODES, MarginMode, PriceType, TradingMode
7+
from freqtrade.enums import OPTIMIZE_MODES, MarginMode, PriceType, TradingMode
88
from freqtrade.exceptions import DDosProtection, ExchangeError, OperationalException, TemporaryError
99
from freqtrade.exchange import Exchange
1010
from freqtrade.exchange.common import retrier
@@ -304,7 +304,7 @@ def check_delisting_time(self, pair: str) -> datetime | None:
304304
:param pair: Market symbol
305305
:return: Datetime if the pair gonna be delisted, None otherwise
306306
"""
307-
if self._config["runmode"] not in TRADE_MODES:
307+
if self._config["runmode"] in OPTIMIZE_MODES:
308308
return None
309309

310310
if self.trading_mode == TradingMode.FUTURES:

0 commit comments

Comments
 (0)