getHistoryIndex: Get day-based stock Index data.

Description Usage Arguments Value Examples

View source: R/getHistoryIndex.R

Description

Get day-based stock Index data.

Usage

1
2
getHistoryIndex(symbol, dayLabel, startDate = "00000000",
  endDate = "99999999")

Arguments

symbol

input a string show the Index symbol

dayLabel

day-based interval label('d' for day, 'w' for week, 'm' for month)

startDate

start date

endDate

end date

Value

data.frame contain all the data from startDate to endDate

Date Date

Open the open price of the day

High the highest price of the day

Close the close price of the day

Low the lowest price of the day

Volumn the volume of the stock

PriceChange the price change of the stock in RMB

PercentChange the percent of the price change of the stock

MA5 mean of price of the latest 5 day

MA10 mean of price of the latest 10 day

MA20 mean of price of the latest 20 day

VMA5 mean of volume of the latest 5 day

VMA5 mean of volume of the latest 10 day

VMA5 mean of volume of the latest 20 day

Examples

1
getHistoryIndex("sh000001","d",20150101,20150415)

Jiramew/stockCn documentation built on May 8, 2017, 11:30 p.m.