Beispiel #1
0
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)
Beispiel #2
0
 def __init__(self):
     self.dm = DataManager()