You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Submitted by: Brian Wagener
Assigned to: Joshua Ulrich R-Forge link
I'm guessing that Yahoo changed something today, such that the parsing no longer works. The source of the problem is the line opt <- opt[grep('Expire at',opt)], which 'Expire at' no longer shows up in page. But since there is no results opt becomes empty, and is what is parsed.
Followups:
Date: 2014-12-13 01:12
Sender: Joshua Ulrich
Partially fixed in r625.
Date: 2014-10-28 12:41
Sender: Joshua Ulrich
To respond to your comments:
Thanks for the feedback.
That was intentional (and fairly inconsequential, the name is easy to change).
I'm aware of this functionality, but didn't get that far in my prototyping. I'm not sure your proposed solution will work in all cases (Exp may be Date, POSIXt, character, etc?).
I'm also aware of this functionality, but didn't get that far in my prototyping.
Thanks for the feedback! And patches are most welcome.
Date: 2014-10-28 12:32
Sender: Brian Wagener
So a few comments:
I don't have a problem with requiring XML, def makes code cleaner and easier to address any further changes yahoo will make.
previous method was called getOptionChain() yours is called getOptions()
Yours doesn't allow for getting any of the expiration dates which are now in Unix date. This is what works for me: as.numeric(as.POSIXct(Exp, format='%Y-%m-%d',tz='GMT'))
Another part to figure out is previously if setting Exp=NULL, then it would get all the expiration dates.
Date: 2014-10-26 00:06
Sender: Joshua Ulrich
I've attached a potential solution (getOption.R), but I'm hesitant to add a dependency on XML. Adding it as a Suggests might be a viable alternative. I'd also appreciate feedback because I'm not familiar with how the function is supposed to work.
The text was updated successfully, but these errors were encountered:
Submitted by: Brian Wagener
Assigned to: Joshua Ulrich
R-Forge link
I'm guessing that Yahoo changed something today, such that the parsing no longer works. The source of the problem is the line opt <- opt[grep('Expire at',opt)], which 'Expire at' no longer shows up in page. But since there is no results opt becomes empty, and is what is parsed.
Followups:
Date: 2014-12-13 01:12
Sender: Joshua Ulrich
Partially fixed in r625.
Date: 2014-10-28 12:41
Sender: Joshua Ulrich
To respond to your comments:
Thanks for the feedback! And patches are most welcome.
Date: 2014-10-28 12:32
Sender: Brian Wagener
So a few comments:
Date: 2014-10-26 00:06
Sender: Joshua Ulrich
I've attached a potential solution (getOption.R), but I'm hesitant to add a dependency on XML. Adding it as a Suggests might be a viable alternative. I'd also appreciate feedback because I'm not familiar with how the function is supposed to work.
The text was updated successfully, but these errors were encountered: