Quantmod

classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

Quantmod

ehcpieterse
Hi there,

I have recently installed R 2.9.1 and quantmod 0.3.6

I am trying to get my head around using it, but I keep on getting stopped at the first hurdle. As an example, I am trying to test the following code:

> from.dat <- as.Date("01/01/08", format="%m/%d/%y")
> to.dat <- as.Date("02/19/09", format="%m/%d/%y")
>
> getSymbols("GE", src="yahoo", from = from.dat, to = to.dat)

But I get the following error:

Error in download.file(paste(yahoo.URL, "s=", Symbols.name, "&a=", from.m,  :
  cannot open URL 'http://chart.yahoo.com/table.csv?s=GE&a=0&b=01&c=2008&d=1&e=19&f=2009&g=d&q=q&y=0&z=GE&x=.csv'
In addition: Warning message:
In download.file(paste(yahoo.URL, "s=", Symbols.name, "&a=", from.m,  :
  unable to connect to 'chart.yahoo.com' on port 80.


I am not sure where to start to fix this this problem. Has anyone come accross something like this before?

Thanks,
Eduard
Reply | Threaded
Open this post in threaded view
|

Re: Quantmod

Arun.stat
I think it is your net-connection problem. It is working fine in my system :

> from.dat <- as.Date("01/01/08", format="%m/%d/%y")
> to.dat <- as.Date("02/19/09", format="%m/%d/%y")
>
> getSymbols("GE", src="yahoo", from = from.dat, to = to.dat)
[1] "GE"
> Sys.info()
                     sysname                      release                      version
                   "Windows"                      "Vista" "build 6002, Service Pack 2"
                    nodename                      machine                        login
                      "ARUN"                        "x86"                    "Arrun's"
                        user
                   "Arrun's"


ehxpieterse wrote
Hi there,

I have recently installed R 2.9.1 and quantmod 0.3.6

I am trying to get my head around using it, but I keep on getting stopped at the first hurdle. As an example, I am trying to test the following code:

> from.dat <- as.Date("01/01/08", format="%m/%d/%y")
> to.dat <- as.Date("02/19/09", format="%m/%d/%y")
>
> getSymbols("GE", src="yahoo", from = from.dat, to = to.dat)

But I get the following error:

Error in download.file(paste(yahoo.URL, "s=", Symbols.name, "&a=", from.m,  :
  cannot open URL 'http://chart.yahoo.com/table.csv?s=GE&a=0&b=01&c=2008&d=1&e=19&f=2009&g=d&q=q&y=0&z=GE&x=.csv'
In addition: Warning message:
In download.file(paste(yahoo.URL, "s=", Symbols.name, "&a=", from.m,  :
  unable to connect to 'chart.yahoo.com' on port 80.


I am not sure where to start to fix this this problem. Has anyone come accross something like this before?

Thanks,
Eduard
Reply | Threaded
Open this post in threaded view
|

Re: [R-sig-finance] Quantmod

Jeffrey Ryan
The other issue is that your version is a bit out of date.

The current CRAN version is 0.3-11.  I'll update the website to
reflect this, as well as post a warning that the site has a tendency
to lag behind CRAN or R-forge in terms of most current versions.

Thanks,
Jeff

On Thu, Jul 30, 2009 at 12:43 PM, Arun.stat<[hidden email]> wrote:

>
> I think it is your net-connection problem. It is working fine in my system :
>
>> from.dat <- as.Date("01/01/08", format="%m/%d/%y")
>> to.dat <- as.Date("02/19/09", format="%m/%d/%y")
>>
>> getSymbols("GE", src="yahoo", from = from.dat, to = to.dat)
> [1] "GE"
>> Sys.info()
>                     sysname                      release
> version
>                   "Windows"                      "Vista" "build 6002,
> Service Pack 2"
>                    nodename                      machine
> login
>                      "ARUN"                        "x86"
> "Arrun's"
>                        user
>                   "Arrun's"
>
>
>
> ehxpieterse wrote:
>>
>> Hi there,
>>
>> I have recently installed R 2.9.1 and quantmod 0.3.6
>>
>> I am trying to get my head around using it, but I keep on getting stopped
>> at the first hurdle. As an example, I am trying to test the following
>> code:
>>
>> > from.dat <- as.Date("01/01/08", format="%m/%d/%y")
>>> to.dat <- as.Date("02/19/09", format="%m/%d/%y")
>>>
>>> getSymbols("GE", src="yahoo", from = from.dat, to = to.dat)
>> But I get the following error:
>>
>> Error in download.file(paste(yahoo.URL, "s=", Symbols.name, "&a=", from.m,
>> :
>>   cannot open URL
>> 'http://chart.yahoo.com/table.csv?s=GE&a=0&b=01&c=2008&d=1&e=19&f=2009&g=d&q=q&y=0&z=GE&x=.csv'
>> In addition: Warning message:
>> In download.file(paste(yahoo.URL, "s=", Symbols.name, "&a=", from.m,  :
>>   unable to connect to 'chart.yahoo.com' on port 80.
>>
>> I am not sure where to start to fix this this problem. Has anyone come
>> accross something like this before?
>>
>> Thanks,
>> Eduard
>>
>>
>
> --
> View this message in context: http://www.nabble.com/Quantmod-tp24739588p24743374.html
> Sent from the Rmetrics mailing list archive at Nabble.com.
>
> _______________________________________________
> [hidden email] mailing list
> https://stat.ethz.ch/mailman/listinfo/r-sig-finance
> -- Subscriber-posting only.
> -- If you want to post, subscribe first.
>



--
Jeffrey Ryan
[hidden email]

ia: insight algorithmics
www.insightalgo.com

_______________________________________________
[hidden email] mailing list
https://stat.ethz.ch/mailman/listinfo/r-sig-finance
-- Subscriber-posting only.
-- If you want to post, subscribe first.
Reply | Threaded
Open this post in threaded view
|

Re: [R-sig-finance] Quantmod

ehcpieterse
Thanks Jeff,

I have updated quantmod but am still having connectivity issues. I have searched through various help files, and I have implemented all the suggestions.

Do you know of a simple guide to check the connectivity setup of R?

Thanks,
Eduard
Reply | Threaded
Open this post in threaded view
|

Re: [R-sig-finance] Quantmod

Joshua Ulrich
Eduard

See this section of the Windows FAQ:
http://cran.r-project.org/bin/windows/base/old/2.0.0/rw-FAQ.html#The-internet-download-functions-fail_002e

Post to R-help If you still have problems, since this is no longer
finance-related.  You'll likely get faster responses from that list.

Best,
Josh
--
http://www.fosstrading.com



On Fri, Jul 31, 2009 at 6:39 AM,
ehxpieterse<[hidden email]> wrote:

>
> Thanks Jeff,
>
> I have updated quantmod but am still having connectivity issues. I have
> searched through various help files, and I have implemented all the
> suggestions.
>
> Do you know of a simple guide to check the connectivity setup of R?
>
> Thanks,
> Eduard
> --
> View this message in context: http://www.nabble.com/Quantmod-tp24739588p24755037.html
> Sent from the Rmetrics mailing list archive at Nabble.com.
>
> _______________________________________________
> [hidden email] mailing list
> https://stat.ethz.ch/mailman/listinfo/r-sig-finance
> -- Subscriber-posting only.
> -- If you want to post, subscribe first.
>

_______________________________________________
[hidden email] mailing list
https://stat.ethz.ch/mailman/listinfo/r-sig-finance
-- Subscriber-posting only.
-- If you want to post, subscribe first.
Reply | Threaded
Open this post in threaded view
|

Re: [R-sig-finance] Quantmod

ehcpieterse
Will do, thanks Josh.