I use Matlab's fetch function to retrieve historical data from Yahoo Finance. The way to do this according to the official documentation (explained here) is as follows:
Connect to Yahoo! Finance.
c = yahoo;
Obtain the security data for IBM with today's date.
d = fetch(c,'IBM',now)
This all worked fine so far. Since this morning however I am receiving the following error:
Error using yahoo
Unable to connect or retrieve data from given URL.
What happened? Is the API down or did I change some settings not knowing about it?
It's a MATLAB workaround for new Yahoo, try this