Use ticker_interval defined in Strategy() instead of a mix between strategy and config file (#540)

This commit is contained in:
Gérald LONLAS
2018-03-15 15:48:22 -07:00
committed by Michael Egger
parent c94f55807b
commit e6732e01e1
6 changed files with 98 additions and 92 deletions

View File

@@ -77,6 +77,13 @@ class Analyze(object):
"""
return self.strategy.populate_sell_trend(dataframe=dataframe)
def get_ticker_interval(self) -> int:
"""
Return ticker interval to use
:return: Ticker interval value to use
"""
return self.strategy.ticker_interval
def analyze_ticker(self, ticker_history: List[Dict]) -> DataFrame:
"""
Parses the given ticker history and returns a populated DataFrame