Add get_strategy_name

This commit is contained in:
Matthias 2018-07-12 20:38:14 +02:00
parent 2a61629014
commit 4059871c28
1 changed files with 7 additions and 0 deletions

View File

@ -80,6 +80,13 @@ class IStrategy(ABC):
:param dataframe: DataFrame
: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:
"""