Provide access to strategy instance from hyperopt class.

This commit is contained in:
Rokas Kupstys
2021-03-13 09:45:16 +02:00
committed by Rokas Kupstys
parent 441d3fad39
commit 5e872273d1
2 changed files with 3 additions and 0 deletions

View File

@@ -12,6 +12,7 @@ from skopt.space import Categorical, Dimension, Integer, Real
from freqtrade.exceptions import OperationalException
from freqtrade.exchange import timeframe_to_minutes
from freqtrade.misc import round_dict
from freqtrade.strategy import IStrategy
logger = logging.getLogger(__name__)
@@ -34,6 +35,7 @@ class IHyperOpt(ABC):
"""
ticker_interval: str # DEPRECATED
timeframe: str
strategy: IStrategy
def __init__(self, config: dict) -> None:
self.config = config