Skip to content

Commit

Permalink
Add importDefaults() to getQuote() and yahoo method
Browse files Browse the repository at this point in the history
Thanks to Ethan Smith for the report.

Fixes #291.
  • Loading branch information
joshuaulrich committed Nov 7, 2020
1 parent a8b3fc3 commit 7db1c42
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions R/getQuote.R
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@

`getQuote` <-
function(Symbols,src='yahoo',what, ...) {
importDefaults("getQuote")

Symbols <- unique(unlist(strsplit(Symbols,";")))
args <- list(Symbols=Symbols,...)
if(!missing(what))
Expand All @@ -24,6 +26,8 @@ function(Symbols,src='yahoo',what, ...) {

`getQuote.yahoo` <-
function(Symbols,what=standardQuote(),...) {
importDefaults("getQuote.yahoo")

length.of.symbols <- length(Symbols)
if(length.of.symbols > 200) {
# yahoo only works with 200 symbols or less per call
Expand Down

0 comments on commit 7db1c42

Please sign in to comment.