View source: R/yf_get_dividends.R
yf_get_dividends | R Documentation |
This function will use the json api to retrieve dividends from Yahoo finance.
yf_get_dividends(ticker, first_date = Sys.Date() - 365, last_date = Sys.Date())
ticker |
a single ticker symbol |
first_date |
The first date of query (Date or character as YYYY-MM-DD) |
last_date |
The last date of query (Date or character as YYYY-MM-DD) |
a tibble with dividends
yf_get_dividends(ticker = "PETR4.SA")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.