Skip to content
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

Handle empty list for put/call tables in getOptionChain.yahoo #155

Closed
joshuaulrich opened this issue May 12, 2017 · 0 comments
Closed

Handle empty list for put/call tables in getOptionChain.yahoo #155

joshuaulrich opened this issue May 12, 2017 · 0 comments
Assignees
Labels
bug

Comments

@joshuaulrich
Copy link
Owner

@joshuaulrich joshuaulrich commented May 12, 2017

It looks like Yahoo changed something so that now fromJSON returns an empty list for the put/call tables instead of NULL. Need to trap that in the NewToOld function and return NULL in that case too.

Consider wrapping the relevant code in try/catch and return NULL if anything goes wrong.

@joshuaulrich joshuaulrich added the bug label May 12, 2017
@joshuaulrich joshuaulrich self-assigned this May 12, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
1 participant
You can’t perform that action at this time.