diff --git a/orangecontrib/timeseries/datasources.py b/orangecontrib/timeseries/datasources.py index 8ca3109..6d0aacd 100644 --- a/orangecontrib/timeseries/datasources.py +++ b/orangecontrib/timeseries/datasources.py @@ -3,9 +3,13 @@ import pandas_datareader.data as web +from pandas_datareader import data as pdr + from Orange.data import Domain from orangecontrib.timeseries import Timeseries +import yfinance as yf + log = logging.getLogger(__name__) try: @@ -79,7 +83,9 @@ def finance_data(symbol, if until is None: until = date.today() - f = web.DataReader(symbol, 'yahoo', since, until) + yf.pdr_override() + + f = pdr.get_data_yahoo(symbol, since, until) data = Timeseries.from_data_table(table_from_frame(f)) # Make Adjusted Close a class variable diff --git a/setup.py b/setup.py index 839e3f8..f205fa0 100644 --- a/setup.py +++ b/setup.py @@ -73,6 +73,7 @@ # required to get current timezone # adding it does not hurt, Pandas have it as a dependency 'python-dateutil', + 'yfinance', 'pyqtgraph>=0.13.1', ], extras_require={