getHoldings.ipath: Get the holdings of an iPath ETN

Description Usage Arguments Value Note Author(s) References See Also Examples

View source: R/getHoldings.ipath.R

Description

Download the names and weights of holdings of iPath ETNs

Usage

1
2
  getHoldings.ipath(Symbols, env = .GlobalEnv,
    auto.assign = TRUE)

Arguments

Symbols

character vector of iPath ETN ticker symbols. Presently, if Symbols is missing, all the iPath Symbols found by scraping http://www.ipathetn.com/us/product_information will be used. However, in the future this may change to require that Symbols is not missing

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”

Value

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.

Note

these funds are not included in the masterDATA csv used by getHoldings. Therefore, getHoldings will not dispatch getHoldings.ipath – it must be called directly.

Author(s)

Garrett See

References

http://www.ipathetn.com/

See Also

getHoldings, getHoldings.SPDR, getHoldings.iShares, getHoldings.powershares, getHoldings.vaneck

Examples

1
2
3
4
## Not run: 
getHoldings.ipath("BCM")

## End(Not run)

qmao documentation built on May 2, 2019, 4:54 p.m.