Traceback (most recent call last):
File "C:UsersSamueDesktopPythonIDLEProjectsPractice1.py", line 13, in
df = web.DataReader ('TSLA' ,'yahoo', start, end)
File "C:Program Files (x86)Python36-32libsite-packagespandas_datareaderdata.py", line 291, in DataReader
raise ImmediateDeprecationError(DEP_ERROR_MSG.format('Yahoo Daily'))
pandas_datareader.exceptions.ImmediateDeprecationError:
Yahoo Daily has been immediately deprecated due to large breaks in the API without the
introduction of a stable replacement. Pull Requests to re-enable these data
connectors are welcome.
Hi,
I also met this problem, the following description for your information.
Yahoo! Finance has been immediately deprecated. Yahoo! substantially altered their API in late 2017 and the csv endpoint was retired.
Reference:
http://pandas-datareader.readthedocs.io/en/latest/remote_data.html
Parts of Yahoo Finance (including the daily reader) were reinstated in #525. I would recommend downloading the latest development version, as described here.
Your request should succeed after doing so.
@addisonlynch I tried the new git version download and instal. Still, the problem persists as I can't access the TSLA data. What should I do next?
Hey @addisonlynch the latest release which you linked still throws an immediate deprecation error when implemented. @naitikbhise What is the specific use case where the "Yahoo Daily" API is needed as opposed to other Financial/Stock Tick API's provided like Robinhood, or Morningstar?
import pandas_datareader.data as web
start = dt.datetime(2017,8,15)
end = dt.datetime(2018,8,15)
df = web.DataReader('TSLA', 'robinhood', start, end)
df.head()
OR
import pandas_datareader.data as web
start = dt.datetime(2013,8,15)
end = dt.datetime(2018,8,15)
df = web.DataReader('TSLA', 'morningstar', start, end)
df.head()
@addisonlynch
@naitikbhise
@leafmouse
Neither Morningstar(only for small datas) nor Robinhood worked for me.
If your still stuck try 'quandl' as a datasource , it should worked perfectly !!
Robinhood API worked for me, as mentioned above. But I have used it, little differently as follows,
prices = data.get_data_robinhood(['CVX','XOM','BP'],
start = dt.datetime(2015,1,1),
end = dt.datetime(2018,1,1))
prices.head()
Yahoo is back in the latest release (0.7.0)