Skip to content

Commit 060a154

Browse files
committed
change to exclude optimize mode
1 parent b8d558a commit 060a154

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

freqtrade/exchange/bitget.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, CandleType, MarginMode, TradingMode
7+
from freqtrade.enums import OPTIMIZE_MODES, CandleType, MarginMode, TradingMode
88
from freqtrade.exceptions import (
99
DDosProtection,
1010
OperationalException,
@@ -245,7 +245,7 @@ def check_delisting_time(self, pair: str) -> datetime | None:
245245
:param pair: Market symbol
246246
:return: Datetime if the pair gonna be delisted, None otherwise
247247
"""
248-
if self._config["runmode"] not in TRADE_MODES:
248+
if self._config["runmode"] in OPTIMIZE_MODES:
249249
return None
250250

251251
if self.trading_mode == TradingMode.FUTURES:

0 commit comments

Comments
 (0)