-
-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
option_chain() return underlying data that comes with the options data #1606
Conversation
I don't use options so can't review. Maybe these can? @thezenvan @GF-Huang @yukunchen113 @gracekk |
I am happy for anyone to review this; note that while someone who knows options may well understand some of the motivation behind this, in fact anyone can review the code and note the following:
That's the extent of this code change. Thanks! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
It gives some more useful info in a non-clunky way. I'd only note the change in return type in _download_options()
, but I don't think it yields any negative impact.
Otherwise, I've quickly looked at code, is a simple change. |
I realize now that I explained what I did but not why. Alternatively I can now take this a step further. since the returned type will always be a dict, I can modify At any rate, I thought it best for |
@DanielGoldfarb Up to you. I'm OK merging this as is. |
I would like to merge this as is, since this does not change the behavior of an "client facing" methods, and I would prefer to leave it at that. Thanks for reviewing! |
I agree 100% with your reasoning here. |
options_chain() return underlying data that comes with the options data. this is helpful to ensure that underlying bid,ask,trade and options bid,ask,trade are in sync, plus avoids an additional call since the data comes from the options chain request anyway.