code: def getData(self, events):
          
          if self.interval not in ["1d", "1wk", "1mo"]:
              raise ValueError("Incorrect interval: valid intervals are 1d, 1wk, 1mo")
  
          url = self.api_url % (self.ticker, self.start, self.end, self.interval, events, self.crumb)
  
          data = requests.get(url, cookies={'B':self.cookie})
          content = StringIO(data.content.decode("utf-8"))
          return pd.read_csv(content, sep=',')
docs: Returns a list of historical data from Yahoo Finance