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

279 get quote resillience 2 #288

Closed

Conversation

@ethanbsmith
Copy link
Contributor

@ethanbsmith ethanbsmith commented Nov 22, 2019

getQuote would fail if the source did not recognize any of the supplied symbols. this was particularly problematic on large batches where a single failure would cause a stop and there was no way to diagnose which symbol had caused the problem

All getQuote paths now return NA rows for missing quotes
centralized row name and missing row handling into master
added explicit curl calls as direct fromJSON calls sometimes failed on long symbol lists

ethanbsmith added 4 commits Nov 22, 2019
explicitly call curl::curl. for some unknown reasosn the direct call to fromJSON causes erros with long symbol lists
moved coumn name and missing row handling into master function
added test for batch size and correct row labeling
@ethanbsmith ethanbsmith marked this pull request as ready for review Nov 22, 2019
R/getQuote.R Outdated Show resolved Hide resolved
R/getQuote.R Outdated Show resolved Hide resolved
R/getQuote.R Outdated Show resolved Hide resolved
R/getQuote.R Show resolved Hide resolved
joshuaulrich and others added 2 commits Nov 23, 2019
Also fix typo in Tiingo column name and address whitespace/formatting.
fixed column name
@joshuaulrich
Copy link
Owner

@joshuaulrich joshuaulrich commented Nov 23, 2019

Is the "Update getQuote.R" commit message subject is something that GitHub is automatically doing for you?

I prefer that commit messages use this format, where the subject briefly (in ~50 characters) describes what will happen if the commit is applied.

@ethanbsmith
Copy link
Contributor Author

@ethanbsmith ethanbsmith commented Nov 23, 2019

probably a github desktop https://desktop.github.com thing. I will watch out for that. apologies

R/getQuote.R Outdated Show resolved Hide resolved
This reverts commit 5ff4cd6.
@joshuaulrich
Copy link
Owner

@joshuaulrich joshuaulrich commented Nov 24, 2019

This is merged, even though GitHub says it's "Closed". I squash-merged from the command line and pushed... assuming it would do the same thing GitHub does. That's what I get for trying not to use the web interface, I guess.

@joshuaulrich joshuaulrich added this to the Release 0.4-16 milestone Feb 23, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

2 participants
You can’t perform that action at this time.