Description Usage Arguments Value Note Author(s) References See Also Examples
View source: R/getHoldings.ipath.R
Download the names and weights of holdings of iPath ETNs
1 2 | getHoldings.ipath(Symbols, env = .GlobalEnv,
auto.assign = TRUE)
|
Symbols |
character vector of iPath ETN ticker
symbols. Presently, if |
env |
environment in which to store holdings data |
auto.assign |
TRUE/FALSE. If TRUE, the holdings data will be stored in an object that has a name that is he Symbol appended with “.h” |
either the names of the objects that contain the holdings
if called with auto.assign=TRUE
, or a list of the
holdings data. The returned data will be in objects
classed as holdings
that are data.frames with
Weights (0-100) in the first column, and the Names of the
holdings in the second column. The rownames are the the
ticker symbols.
these funds are not included in the masterDATA csv used
by getHoldings
. Therefore,
getHoldings
will not dispatch
getHoldings.ipath
– it must be called
directly.
Garrett See
getHoldings
,
getHoldings.SPDR
,
getHoldings.iShares
,
getHoldings.powershares
,
getHoldings.vaneck
1 2 3 4 | ## Not run:
getHoldings.ipath("BCM")
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.