Learn R Programming

rusquant (version 1.1.4)

getDividends: Download dividends data

Description

This function returns dividends data from Investing.com or Tinkoff broker.

Usage

getDividends(
  src = "investing",
  figi = "",
  api.key = "",
  from = Sys.Date() - 10,
  to = Sys.Date(),
  country = ""
)

Value

a list with dividends data

Arguments

src

source of dividends information. Could be 'investing' or 'tinkoff'

figi

FIGI of the instrument to get dividends for (only for Tinkoff broker)

api.key

Tinkoff broker API key (only for Tinkoff broker)

from

start date of the dividends data. Default is 10 days ago

to

end date of the dividends data. Default is today

country

a character string with the country name to filter dividends data for (only for Investing.com)

Author

Vyacheslav Arbuzov

Examples

Run this code
getDividends(from = Sys.Date(),to = Sys.Date()+10,country = "Australia")

Run the code above in your browser using DataLab