diff --git a/LSTM_model.py b/LSTM_model.py index 4dd24c0..30bce0f 100644 --- a/LSTM_model.py +++ b/LSTM_model.py @@ -4,8 +4,8 @@ import tensorflow as tf from preprocessing import DataProcessing import pandas_datareader.data as pdr -import fix_yahoo_finance as fix -fix.pdr_override() +import yfinance as yf +yf.pdr_override() start = "2003-01-01" end = "2018-01-01" diff --git a/MLP_model.py b/MLP_model.py index 02f9ed5..bbf6976 100644 --- a/MLP_model.py +++ b/MLP_model.py @@ -2,8 +2,8 @@ import tensorflow as tf from preprocessing import DataProcessing # import pandas_datareader.data as pdr if using the single test below -import fix_yahoo_finance as fix -fix.pdr_override() +import yfinance as yf +yf.pdr_override() start = "2003-01-01" end = "2018-01-01" diff --git a/get_prices.py b/get_prices.py index 0c399e8..16f1dd1 100644 --- a/get_prices.py +++ b/get_prices.py @@ -1,7 +1,7 @@ import pandas_datareader.data as pdr -import fix_yahoo_finance as fix +import yfinance as yf import time -fix.pdr_override() +yf.pdr_override() def get_stock_data(ticker, start_date, end_date): diff --git a/requirements.txt b/requirements.txt index 02bcba8..0305923 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,5 +1,5 @@ pandas-datareader -fix-yahoo-finance +yfinance numpy pandas tensorflow