class Application(object): def __init__(self): self.dm = DataManager() def run(self, args): symbol = args[1] start = format_as_date(args[2]) end = format_as_date(args[3]) data = self.dm.fetch_range(symbol, start, end) res = thirty_day_average_high_low_spread(symbol, data) print(res)
def __init__(self): self.dm = DataManager()