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

Comments

@joshuaulrich
Copy link
Owner

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant