Skip to content

Commit

Permalink
having option variables in python2 doesn't work
Browse files Browse the repository at this point in the history
Removed interval option from Fetcher object to support Python2
  • Loading branch information
AndrewRPorter authored Jul 20, 2017
1 parent 688402a commit bb43805
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions yahoo_historical/fetch.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@

class Fetcher:
api_url = "https://query1.finance.yahoo.com/v7/finance/download/%s?period1=%s&period2=%s&interval=%s&events=history&crumb=%s"
def __init__(self, ticker, start, *args, interval = "1d"):
def __init__(self, ticker, start, *args):
"""Initializes class variables and formats api_url string"""
self.ticker = ticker.upper()
self.interval = interval
self.interval = "1d"
self.cookie, self.crumb = self.init()

self.start = int(time.mktime(dt.datetime(start[0],start[1],start[2]).timetuple()))
Expand Down

0 comments on commit bb43805

Please sign in to comment.