Checks the validity of financial symbols using Yahoo Finance's validation API.
Return a data.frame of logical values indicating whether each symbol is recognized by Yahoo Finance.
Value
A data.frame boolean logical table with one row and as many columns as the number of unique symbols provided by the user.
Each column corresponds to a symbol, and the logical value is TRUE if Yahoo Finance recognizes the symbol, and FALSE otherwise.
Examples
valid_symbol("AAPL,GOOGL")
#> GOOGL AAPL
#> 1 TRUE TRUE
valid_symbol(symbols = c("CDF", "SCR", "INVALID"))
#> Invalid financial symbol(s) : CDF, SCR, INVALID
#> CDF SCR INVALID
#> 1 FALSE FALSE FALSE
