Skip to content
Prev 6950 / 15274 Next

But in quantmod function

OK,

Bad example.  But try it for the ticker "^RUT"  (Russel index)

There ARE options:  http://finance.yahoo.com/q/op?s=^RUT+Options

Also options for the S&P mini "^XAP"
http://finance.yahoo.com/q/op?s=^XSP+Options

getOptionChain("^XSP", NULL)
Error in from:to : NA/NaN argument

I'VE FOUND THE BUG.  But don't know how/where to submit it.

Look carefully at the URLs used by yahoo.

For a stock

For an index

Notice that with an index, the "+options" part is there.  Try calling 
the page without it and it fails.  The current code in quantmod doesn't 
add this.

I think we just need add one line:      Symbols <- paste(Symbols, 
"+options", sep="")

-N
On 11/15/10 7:03 PM, Cedrick Johnson wrote:
Message-ID: <4CE1FCB7.1070103@smartmediacorp.com>
In-Reply-To: <2041993552-1289876616-cardhu_decombobulator_blackberry.rim.net-896763684-@bda059.bisx.prod.on.blackberry>