search_stock: search_stock

View source: R/search_stock.R

search_stockR Documentation

search_stock

Description

Search for stocks and securities using company names, isin and cusip codes or tickers. Useful to get the exact tickers yahoo finance uses in order to query other financial data.

Usage

search_stock(search_term, keep_results = "all")

Arguments

search_term

The name, cusip code, isin code or stock ticker of a security.

keep_results

Set "top" for the first result per search, or "all" for all search results.

Value

Search results of securities matching the query. Available data: exchange name, shortname, ticker symbol, security type and more.

Examples

search_stock("Nike", keep_results = "all")
search_stock(c("Nike", "adidas"), keep_results = "top")
search_stock(search_term = "US4581401001", keep_results = "top")
search_stock(search_term = "594918104", keep_results = "top")

Ljupch0/yfinance documentation built on July 27, 2023, 7:12 p.m.