diff --git a/stock.py b/stock.py index a9ef903..8acf5b2 100644 --- a/stock.py +++ b/stock.py @@ -38,7 +38,7 @@ class Stock(object): filename = 'stocks/' + self.symbol.replace('.', '_') + '.h5' fetch = False today = dt.date.today() - start = dt.datetime(today.year, 1, 1) + start = dt.date(today.year-1, today.month, today.day) end = today try: