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

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 November 22, 2019 23:09
R/getQuote.R Outdated Show resolved Hide resolved
R/getQuote.R Outdated Show resolved Hide resolved
R/getQuote.R Outdated Show resolved Hide resolved
joshuaulrich and others added 2 commits November 23, 2019 11:18
Also fix typo in Tiingo column name and address whitespace/formatting.
fixed column name
@joshuaulrich
Copy link
Owner

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

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

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
@ethanbsmith ethanbsmith deleted the 279_getQuote_resillience_2 branch December 26, 2021 01:08
@ethanbsmith ethanbsmith restored the 279_getQuote_resillience_2 branch December 26, 2021 01:09
@ethanbsmith ethanbsmith deleted the 279_getQuote_resillience_2 branch December 26, 2021 01:09
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