Description Usage Arguments Value Examples
Extracts stock data from the CSI UA database.
1 | stockseries(symbol, start.date = -1, end.date = -1, freq = c("d", "w", "m", "q", "y"), stk.control = NULL)
|
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 |
Returns an object of class uaStockSeries
.
1 2 3 4 5 | # startUA()
# dat = stockseries("ibm")
# has show and data.frame methods
# show(dat)
# tail(as.data.frame(dat), 10)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.