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

Update getOptionChain to handle empty volume or open interest #300

Merged
merged 1 commit into from
Mar 3, 2020

Conversation

jrburl
Copy link
Contributor

@jrburl jrburl commented Mar 2, 2020

Have seen getOptionChain fail on several occasions due to
"Error in data.frame(Strike = strike, Last = lastprice, Chg = change, Bid = bid, : object 'volume' not found". (or open interest). Proposing an if else statement to check if "volume" and "openinterest" are in the table column names. If in, no changes, if out, populate with NA.

Have seen getOptionChain fail on several occasions due to 
"Error in data.frame(Strike = strike, Last = lastprice, Chg = change, Bid = bid,  :  object 'volume' not found". (or open interest). Proposing an if else statement to check if "volume" and "openinterest" are in the table column names. If in, no changes, if out, populate with NA.
@joshuaulrich joshuaulrich added this to the Release 0.4-16 milestone Mar 3, 2020
@joshuaulrich joshuaulrich merged commit bb4be7c into joshuaulrich:master Mar 3, 2020
@joshuaulrich
Copy link
Owner

Thank you for your contribution!

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

Successfully merging this pull request may close these issues.

None yet

3 participants