-
-
Notifications
You must be signed in to change notification settings - Fork 17.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
backwards compatible refactoring of io/data options functionality #3817
Comments
not that I am against breaking an API, but seems the first point can be done in a backwards compat manner (at least for 1 release), but accepting the old parms and converting to your new one? |
can u put up the new call signature? |
@jreback please see #3822 I would like to see the semantics of these functions reviewed. Defaulting to current month is unclear for instruments with weekly options. Maybe an expiry date could always be required instead? In addition i would like to remove get_forward_data() as it can be easily replicated by multiple calls into the other API points. |
@gliptak, most of these changes look great. I do, however, appriciate @jreback's comment about not breaking the API for the months. Also, I realize that |
@spencerlyon2 Spencer, yes let's keep year/month around for a release and the changes I proposed facilitate this. As for As I discussed above, I would like to modify the semantics of all options methods to support weekly expiries, which means sending in an actual expiry date (year/month/day) acquired from a list of expiries function call and this is where I'm a bit fuzzy on what I do understand that Yahoo displays all expiries in a given month on a single page (I'm actually not sure how to generate the list of all expiries from the Yahoo data ...), while Google have them separated based on all expiries. Please offer your thoughts. Thanks |
@jreback quick question here - how does interface-breaking refactoring work with version numbers? I'm surprised this would be put in |
this appears to be back-compat; introducing a new API is ok as long as it accepts the old (or we deprecate and usually wait a version) |
@jreback ah, okay, sorry I read "interface-breaking" as "backwards-incompatible" |
@jtratner started out as interface breaking, but morphed into backward compatible based on the advice given |
@gliptak in 0.12 if you want to break the API, pls open a new issue (as a reminder), see Note to Selves (I am not sure you actuallly need to do that ....but think about it) |
@gliptak this is not hooked to travis for some reason...? |
@jreback what isn't hooked to Travis? |
sorry thought was a pr for a sec :) |
closed by #3822 |
I would like to propose an interface breaking refactoring to io/data options.
Here are the proposed major changes:
This is in preparation to hooking up Google Finance as an options data source. (#3822)
Please comment. Thanks
The text was updated successfully, but these errors were encountered: