historical_information: Get historical information for investing funds

View source: R/historical_information.R

historical_informationR Documentation

Get historical information for investing funds

Description

Get historical information for investing funds

Usage

historical_information(
  information_type = c("BindHistoryInfo", "BindHistoryAllocation"),
  fund_type = c("YAT", "EMK", "BYF"),
  start_date,
  end_date,
  fund_code = NULL
)

Arguments

information_type

Type of the information. Must be one of the following:

  • "BindHistoryInfo" : General information about a fund such as price, total value, number of traders

  • "BindHistoryAllocation" : Breakdown of a portfolio in percentage

fund_type

Type of the fund. Must be one of the following:

  • "YAT" : Securities Mutual Funds

  • "EMK" : Pension Funds

  • "BYF" : Exchange Traded Funds

start_date

Start date for the historical data. Must be a Date object.

end_date

End date for the historical data. Must be a Date object.

fund_code

(optional) Abbreviation for the desired fund. If NULL, all of the funds for the given time period are returned. Complete list of funds traded in TEFAS can be found in takasbank website

Value

A data frame.

Examples

historical_information(
  information_type = "BindHistoryInfo",
  fund_type = "YAT",
  start_date = as.Date("2021-10-01"),
  end_date = as.Date("2021-10-01")
)

can-taslicukur/tefasr documentation built on July 13, 2022, 3:03 p.m.