getTSE: Download Historical Dataset from Tehran Stock Exchange (TSE)

View source: R/getTSE.R

getTSER Documentation

Download Historical Dataset from Tehran Stock Exchange (TSE)

Description

getTSE function is an easy way to download and organize the historical dataset from websites of TSE and www.tsetmc.com. Since, the raw data are not recorded in a standard format, we provide the function for organize the data in user friendly way. Daily data updated after 13:30 UTC. The market is closed on Friday and Wensday and national holidays.

Usage

	getTSE(file, symbols=NA)

Arguments

file

the path and name of external file which include the name of symbol and company and a specific code.

symbols

a vector of character given the name of assets to download. The name of assets has to be included in the first column of file. The default value is NA which consider all assets at source file to download.

Details

The list of symbols or assets can be named, and the list names will be used as names for the variables. Component data is an array with xts time series object. The name for dimensions are: Open, High, Low, Close, Volume, Last. The value of symbols are appear in Global Environment.

Value

The output is an object of the “assets” name which get all the name of assets list to download.

Examples

## Not run: 
	fpath<-system.file("extdata", "sample.dat", package="TSEtools")
	getTSE(fpath)
	
## End(Not run)

TSEtools documentation built on July 9, 2023, 6:32 p.m.