change to exclude optimize mode
This commit is contained in:
@@ -4,7 +4,7 @@ from datetime import datetime, timedelta
|
|||||||
import ccxt
|
import ccxt
|
||||||
|
|
||||||
from freqtrade.constants import BuySell
|
from freqtrade.constants import BuySell
|
||||||
from freqtrade.enums import TRADE_MODES, CandleType, MarginMode, TradingMode
|
from freqtrade.enums import OPTIMIZE_MODES, CandleType, MarginMode, TradingMode
|
||||||
from freqtrade.exceptions import (
|
from freqtrade.exceptions import (
|
||||||
DDosProtection,
|
DDosProtection,
|
||||||
OperationalException,
|
OperationalException,
|
||||||
@@ -245,7 +245,7 @@ class Bitget(Exchange):
|
|||||||
:param pair: Market symbol
|
:param pair: Market symbol
|
||||||
:return: Datetime if the pair gonna be delisted, None otherwise
|
:return: Datetime if the pair gonna be delisted, None otherwise
|
||||||
"""
|
"""
|
||||||
if self._config["runmode"] not in TRADE_MODES:
|
if self._config["runmode"] in OPTIMIZE_MODES:
|
||||||
return None
|
return None
|
||||||
|
|
||||||
if self.trading_mode == TradingMode.FUTURES:
|
if self.trading_mode == TradingMode.FUTURES:
|
||||||
|
|||||||
Reference in New Issue
Block a user