data.getBhavcopy: data.getBhavcopy

Description Usage Arguments Details Value Note Author(s)

Description

This gets the bhavcopy from nse-india for given days and puts the data into the file given in params.

Usage

1
2
3
4
data.getBhavcopy(startDate = as.Date("2010-01-01", order = "ymd"),
  endDate = as.Date("2010-01-10", order = "ymd"), dirName = NULL,
  weekends = FALSE, yearlyFile = TRUE, dayFile = TRUE, monFile = TRUE,
  rdaObj = NULL)

Arguments

startDate

- Date in YMD format.

endDate

- Date in YMD format.

dirName

- default - current working directory. Name of the directory where files should be downloaded.

weekends

- default, it won't pull data for weekends. If needed enable the flag. Sometime Muhurat trade can be on weekends.

dayFile

- default - TRUE. If yearlyfile is true, if you wish you can remove all daily files. It is valid only when yearlyFile is True.

monFile

- default - FALES. If monthly file to be created.

rdaObj

- If rdaObj is given, complete data is created as rda file, with bhavcopy as objectname(dataframe)

YearlyFile

- default - FALSE. If given, a consolidated file with all the data yearwise is kept.

Details

Copies the bhavcopies from nse and keeps the csv (yearlywise) in the given directory.

Value

Returns a dataframe with all the accumulated data.

Note

This will create a trade object

Author(s)

Siva Sunku


sivasunku/dataNindicators documentation built on May 15, 2019, 4:17 p.m.