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 Bid & Ask fields to handle missing entries #302

Merged
merged 1 commit into from Nov 29, 2020

Conversation

jrburl
Copy link
Contributor

@jrburl jrburl commented Mar 9, 2020

Similar to Vol & OI changes implemented previously. There are requests that are failing due to the bid & ask fields not having any info. This change solves.

Please review the contributing guide before submitting your pull request. Please pay special attention to the pull request and commit message sections. Thanks for your contribution and interest in the project!

Similar to Vol & OI changes implemented previously. There are requests that are failing due to the bid & ask fields not having any info. This change solves.
joshuaulrich referenced this pull request Mar 10, 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.
@joshuaulrich joshuaulrich merged commit 77c4b92 into joshuaulrich:master Nov 29, 2020
@joshuaulrich
Copy link
Owner

Wow, I'm sorry I took so long to merge this! I saw it as I was preparing the next release, so it will be on CRAN soon.

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

Successfully merging this pull request may close these issues.

None yet

2 participants