Validate symbols before retrieving data. This function checks whether the provided ticker strings are valid according to the Yahoo Finance API.
Arguments
- symbol
A character vector of one or more ticker strings, index or fund names (e.g.,
c("AAPL", "MSFT")).- index
Deprecated. Use
symbolinstead.- return_logical
A logical value indicating whether to return a named logical vector. If
FALSE(default), returns a character vector containing only the valid symbols. IfTRUE, returns a named logical vector indicating validation status (TRUE/FALSE) for each symbol.