getHistoryStockData: Get day-based stock data.

Description Usage Arguments Value Examples

View source: R/getHistoryStockData.R

Description

Get day-based stock data.

Usage

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

Arguments

symbol

input a string show the stock 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

Turnover turnover rate

Examples

1
getHistoryStockData("sh600500","d",20150101,20150415)

Jiramew/stockCn documentation built on May 7, 2019, 10:53 a.m.