stockseries-methods: Function for Stock Data Extraction

Description Usage Arguments Value Examples

Description

Extracts stock data from the CSI UA database.

Usage

1
stockseries(symbol, start.date = -1, end.date = -1, freq = c("d", "w", "m", "q", "y"), stk.control = NULL)

Arguments

symbol

(character) A valid asset symbol.

start.date

(integer) Either -1 for all available (depends on you subscription) else an integer in the form of YYYYMMDD (a function will check various permutations of this and try to understand other formats but there is no guarantee).

end.date

(integer) Either -1 for last available date else an integer in the form of YYYYMMDD (a function will check various permutations of this and try to understand other formats but there is no guarantee).

freq

(character) Data aggregation frequency, method for which may be supplied in the fut.control options.

stk.control

(list) Either NULL (default control parameters) or a list created by calling the function stkcontrol which controls various options for how stock data is handled.

Value

Returns an object of class uaStockSeries.

Examples

1
2
3
4
5
# startUA()
# dat = stockseries("ibm")
# has show and data.frame methods
# show(dat)
# tail(as.data.frame(dat), 10)

RCSI documentation built on May 2, 2019, 4:50 p.m.