View source: R/get_price_data.R
get_prices_from_yahoo | R Documentation |
Get prices for a given ticker from the Yahoo Finance API. Wrapper around
get_ticker_prices
with further arguments. E.g., select the stock exchange.
get_prices_from_yahoo(ticker, from, to, preferred_exchange = "Xetra", stock_exchanges = c(".DE", ".F", ".SG", ".MU", ".DU"), method = "simple", user_specific_exchange = TRUE)
ticker |
A single character string. Ticker symbol. |
from |
A single character string. Start date. |
to |
A single character string. End date. |
preferred_exchange |
A single character string. Stock exchange (default is Xetra) |
stock_exchanges |
A vector of single character strings. Possible stock exchanges to get prices from. |
method |
A single character string (default: simple). The method how to get prices from Yahoo. Use the R package quantmod or a simple and fast solution. |
user_specific_exchange |
Logical indicating whether prices are taken from exchange that is preferred by the user (i.e., stored in the user's profile). Default is TRUE. |
A data frame containing dates, prices (open, high, low, close, adjusted) and volume.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.