Skip to content

An Issue with quantmod

5 messages · Joshua Ulrich, rsherry8

#
I am using version 3.4.2 of R and I run the following two commands:
 ???? library(quantmod)
 ???? x=getQuote( "XOM" )
and get the following error messages:

Error in 
download.file(paste("https://finance.yahoo.com/d/quotes.csv?s=",? :
 ? cannot open URL 
'https://finance.yahoo.com/d/quotes.csv?s=XOM&f=d1t1l1c1p2ohgv'
In addition: Warning message:
In download.file(paste("https://finance.yahoo.com/d/quotes.csv?s=", :
 ? cannot open URL 
'https://finance.yahoo.com/d/quotes.csv?s=XOM&f=d1t1l1c1p2ohgv': HTTP 
status was '403 Forbidden'

What should I do?

Bob
#
On Tue, Nov 14, 2017 at 8:09 AM, Robert Sherry <rsherry8 at comcast.net> wrote:
Search open issues (the function name and portion(s) of the error are
usually good search terms):
https://github.com/joshuaulrich/quantmod/issues/

And report a new issue if someone else already hasn't.  In this case,
it's already been reported and I'm working on a fix:
https://github.com/joshuaulrich/quantmod/issues/197

  
    
11 days later
#
Josh or anybody else,

First I want to thank Josh for his attention to this bug. I looked at 
the following URL:
 ??? https://github.com/joshuaulrich/quantmod/issues/197
and I see the following:

I just pushed an update to the|197_getQuote|branch. Please test and 
provide feedback!

There is one minor issue regarding the "Last Time" field. It's currently 
in your local timezone, not the exchange timezone. The fix needs to 
account for the possibility that users may request multiple symbols, and 
those symbols may be from exchanges in different timezones. You cannot 
mix timezones in a|POSIXct|vector, so we need to check whether all the 
timezones are the same, and convert them to a common timezone if they 
are not.


What I do not know is how to get this update? I have run the following 
command:? update.packages()
However, this command updates all packages and I do not believe I can 
specify the particular branch 197_getQuote. What should I do?

Bob Sherry
On 11/14/2017 9:11 AM, Joshua Ulrich wrote:

  
  
#
On Sat, Nov 25, 2017 at 3:35 PM, Robert Sherry <rsherry8 at comcast.net> wrote:
Have you tried what's suggested in the README.md?  I've quoted the
relevant portion below:

Installation

The current release is available on CRAN, which you can install via:
install.packages("quantmod")

To install the development version, you need to clone the repository
and build from source, or run one of:

# lightweight
remotes::install_github("joshuaulrich/quantmod")
# or
devtools::install_github("joshuaulrich/quantmod")

  
    
#
Josh,

Based on your last email, I tired what was suggested and it worked. 
Thank you very much.

Bob Sherry
On 11/25/2017 5:27 PM, Joshua Ulrich wrote: