Jays-code-collection / HMMs_Stock_Market

Contains all code related to using HMMs to predict stock market prices.
GNU General Public License v2.0
247 stars 59 forks source link

Unable to download data from Yahoo Finance #11

Open vr-marco opened 1 year ago

vr-marco commented 1 year ago

The fix is as follows. Add to your import:

import yfinance as yf

then in the _split_train_test_data method under the try: change as follows:

yf.pdr_override()
used_data = data.get_data_yahoo(self.company, start=self.start_date, end=self.end_date)