powered by
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())
a tibble with dividends
a single ticker symbol
The first date of query (Date or character as YYYY-MM-DD)
The last date of query (Date or character as YYYY-MM-DD)
yf_get_dividends(ticker = "PETR4.SA")
Run the code above in your browser using DataLab