Add get_strategy_name

This commit is contained in:
Matthias 2018-07-12 20:38:14 +02:00
parent 2a61629014
commit 4059871c28

View File

@ -80,6 +80,13 @@ class IStrategy(ABC):
:param dataframe: DataFrame :param dataframe: DataFrame
:return: DataFrame with sell column :return: DataFrame with sell column
""" """
return self.strategy.populate_sell_trend(dataframe=dataframe)
def get_strategy_name(self) -> str:
"""
Returns strategy class name
"""
return self.strategy.__class__.__name__
def analyze_ticker(self, ticker_history: List[Dict]) -> DataFrame: def analyze_ticker(self, ticker_history: List[Dict]) -> DataFrame:
""" """