[R-SIG-Finance] get.hist.quote

Adrian Trapletti adrian at trapletti.org
Wed Mar 16 12:10:23 CET 2011


Hi William,

Thank you for you report. I am using get.hist.quote only very 
infrequently. I don't know the difference between chart and ichart. 
Maybe somebody from the R community may help?

Best regards
Adrian

William Proffitt wrote:
> Hello Adrian,
>
> I was using get.hist.quote to download some historical stock data from 
> Yahoo, and I encountered a problem when trying to get data on the 
> stock SBAY. R was trying to download a .csv from this 
> <http://chart.yahoo.com/table.csv?s=SBAY&a=0&b=02&c=1991&d=2&e=14&f=2011&g=d&q=q&y=0&z=SBAY&x=.csv> link 
> and was failing with a 404 for no apparent reason. 
>
> Yahoo has data on SBAY, and it can be accessed by going to 
> finance.yahoo.com <http://finance.yahoo.com>, typing in SBAY, then 
> clicking on "historical prices," where it can then be downloaded as a 
> csv. The domain of the URL for this csv is ichart.finance.yahoo.com 
> <http://ichart.finance.yahoo.com> rather than chart.yahoo.com 
> <http://chart.yahoo.com>, though.
>
> I changed get.hist.quote to use this domain for its links and it 
> performed just as well as before on every other stock I tried, and it 
> also worked correctly on SBAY. Do you know if there is any difference 
> between the two URL formats aside from SBAY not working on 
> chart.yahoo.com <http://chart.yahoo.com>? Should get.hist.quote use 
> ichart.finance.yahoo.com <http://ichart.finance.yahoo.com> instead?
>
> William Proffitt
> www.datamininglab.com <http://www.datamininglab.com>

-- 
Adrian Trapletti
Steinstrasse 9b
8610 Uster
Switzerland

Phone : +41 (0) 44 9945630
Mobile : +41 (0) 76 3705631

Email : adrian at trapletti.org



More information about the R-SIG-Finance mailing list