pandas datareader pulling from 'morningstar' results in 404 (was fine 7/27/2018)

pandas datareader yahoo
pandas-datareader iex
pandas datareader 2019
import pandas-datareader
pandas-datareader github
pandas-datareader quandl
pandas-datareader not working
pandas-datareader robinhood

I assume the Morningstar API URL panda's is pulling from is no longer available. Can anyone recommend a replacement?

My code (which worked on 7/27/2018);

df = web.DataReader(ticker, 'morningstar', start, end)

Is causing error message:

File "C:...\site-packages\pandas_datareader\mstar\", line 130, in _dl_mult_symbols resp.status_code, resp.reason))

Exception: Request Error!: 404 : Not Found

The 404 is coming from lines 91-94 in;

def url(self):
    """API URL"""
    return "" \

Morningstar's API was discontinued in 7/2018. As such, its reader will be deprecated in the next version of Pandas Datarader (0.7.0). See this issue for more information.

As the above comment notes, there are various alternative sources to obtain equities data, such as Quandl, AlphaVantage, and IEX. See the Pandas Datareader documentation for details.

Pulling stock information using pandas datareader, ipython:: python. import as web. import datetime ``​DataReader`` now supports dividend only pulls from Yahoo! Finance, see  Extract data from a wide range of Internet sources into a pandas DataFrame. - pydata/pandas-datareader

try to update your "pandas_datereader" and then use "stooq" or "iex" instead of "morningstar":

df = web.DataReader("TSLA", 'stooq', start, end) df = web.DataReader("TSLA", 'iex', start, end)

hope that helps!

pydata/pandas-datareader, Many functions from the data module have been included in the top level API. import pandas_datareader as pdr pdr.get_data_fred('GS10'). 3  from import data, wb # becomes from pandas_datareader import data, wb Many functions from the data module have been included in the top level API. import pandas_datareader as pdr pdr.get_data_fred( ' GS10 ' )

I was facing the same issue but now i got an alternative way to get the data using pandas_datareader which works fine. Hope it will help you.

from pandas_datareader.quandl import QuandlReader data = QuandlReader("WIKI/{}".fromat(ticker), start=START, end=END) df =

[PDF] pandas-datareader Documentation, from pandas_datareader import data # Only get the adjusted close. aapl = data.​DataReader("AAPL", start='2015-1-1', end='2015-12-31',  DNM: need to check docbuild and other readers PoC re: #677 (comment) Refactors _sanitize_dates to accept additional date formats (str, int, date, datetime, timestamp) and output a tuple of pandas.Timestamp Adds default_start_date property to allow readers to specify a rolling default start date.

Pandas Data Reader - How to get Yahoo Stock Data, v0.8.0 (September 22, 2019)¶. Highlights include: A new connector for Econdb was introduced. Econdb provides aggregated economic data from 90+ official  import as web f = web.DataReader('gs', 'iex-tops') f[:10] Alpha Vantage ¶ Alpha Vantage provides realtime equities and forex data. Free registration is required to get an API key. Historical Time Series Data ¶ Through the Alpha Vantage Time Series endpoints, it is possible to obtain historical equities data for

pandas, The API for pandas-datareader v0.1.1 is the same as in pandas v0.16.1. (​GH8961). You should from pandas_datareader import data, wb. Functions from​  from pandas_datareader. oanda import get_oanda_currency_historical_rates from pandas_datareader . nasdaq_trader import get_nasdaq_symbols This comment has been minimized.

What's New, Panda - Data Reader. Pada Data Reader Package is the library to pull out the data directly from various web source (e.g, Yahoo Finance, Google Finance etc). Per #662, Alphavantage now returns descending time series data. This PR reconciles this change with PDR and reverses the index to maintain ascending order as is standard.

  • Looks like others may be having the same problem:…
  • Recommending web-sites is off-topic for stackoverflow
  • @JoakimDanielson The OP is not requesting a website recommendation.
  • @DYZ, then I must have completely misunderstood the second sentence.
  • This is not an answer. Should have been posted as a comment.
  • The code throws errors when I run it. format is misspelled and NameError: name 'ticker' is not defined.