View source: R/HistoricalDividendsAPI.R
get_historical_dividends_data | R Documentation |
This function retrieves historical dividends data from the API.
get_historical_dividends_data(
api_token,
ticker,
date_from = NULL,
date_to = NULL
)
api_token |
The API token for authentication. |
ticker |
consists of two parts: [SYMBOL_NAME].[EXCHANGE_ID]. |
date_from |
date from with format Y-m-d |
date_to |
date from with format Y-m-d |
A list containing historical dividends data.
api_token <- "demo"
ticker <- "AAPL.US"
date_from <- "2017-09-10"
date_to <- "2017-09-12"
result <- get_historical_dividends_data(api_token, ticker, date_from, date_to)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.