Description Usage Arguments Value Author(s) Examples
reads any tseries type object form LIM
1 2 3 4 5 | get.relation(relname,colnames=NULL,units="days",bars=1)
get.perpetual.series(relname,colnames=c("open","high","low","close","volume","OpenInterest"),
rollDay="open_interest crossover",rollPolicy="Actual Prices",units="days",bars=1)
get.ohlc(relname,colnames=c("open","high","low","close"),units="days",bars=1)
get.futures.series(relname, units="days", bars=1, rollPolicy="open_interest crossover")
|
relname |
contract, symbol, or ticker |
colnames |
what cols do you want to read |
rollDay |
string describing when to roll the contract |
rollPolicy |
string describing how to adjust the prices when a roll occurs |
units |
minutes or days |
bars |
how many minutes or days |
an fts object
Whit Armstrong
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | ## load all columns
ibm.all <- get.relation("IBM")
## load only the open/high/low/close columns
ibm.ohlc <- get.ohlc("IBM")
ty <- get.futures.series("TY")
ty.p <- get.perpetual.series("TY")
ty.p <- get.perpetual.series("TY",rollDay="open_interest crossover")
ty.p1 <- get.perpetual.series("TY",rollDay="1 day after open_interest crossover")
ty.adj <- get.perpetual.series("TY",rollDay="open_interest crossover",rollPolicy="backward adjusted prices")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.