View source: R/07dataDownload.R
getTWSE.fiveSecond | R Documentation |
It downloads Download 5-second financial index from the Taiwan Stock Exchange.
getTWSE.fiveSecond(ymd=NULL,skip=2,index.names=NULL)
ymd |
The year-month-day format of data retrived, for example, "2022-05-03". If unspecified, the default is the Sys.date(); if Saturday, it moves back to Friday; if Sunday, it moves to Monday. |
skip |
The rows to skip, since the web usually contains empty space or notes in the beginning, currently, skip 2 lines is OK, however, it skipped 1. Therefore, the parameter can be checked if it changes again. |
index.names |
The colnames (names of index price) of the dataset are originally in Chinese characters, to avoid language problem, we changed it to V1~V34. Users may offer your own colnames here. |
This function connects with <"https://www.twse.com.tw/exchangeReport/MI_5MINS_INDEX"> and downloads the specified market data. The rownames of downloaded data embeds the timestamp already.
data |
The data retrieved. |
Ho Tsung-wu <tsungwu@ntnu.edu.tw>, College of Management, National Taiwan Normal University.
#getTWSE.fiveSecond(ymd="2022-05-03",skip=2,index.names=NULL)$data
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.