Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to use getReturns with the Yahoo finance API

I have problems with R package getReturns. I have encountered this error since 17th May:

Warning in file(file, "rt") : cannot open URL 'http://ichart.finance.yahoo.com/table.csv?s=AAPL&a=4&b=28&c=2014&d=4&e=27&f=2017&g=w&ignore=.csv': HTTP status was '404 Not Found'

It looks like that ichart API did not run anymore. Can anyone help me with this issue? Does someone know how to fix it? I have encountered the same issue with the quantmod R package.

like image 519
Ethan Avatar asked Mar 10 '23 00:03

Ethan


1 Answers

I have encountered this problem as well. Yahoo! has taken down ichart and the open-source libraries that rely on it are now broken. Yahoo! also has no plans to introduce a replacement. For more information, see this post on Yahoo!'s Forums.

like image 107
Andrew Z Avatar answered Mar 11 '23 14:03

Andrew Z