Learn R Programming

FinancialInstrument (version 1.3.1)

FindCommonInstrumentAttributes: Find attributes that more than one instrument have in common

Description

Find attributes that more than one instrument have in common

Usage

FindCommonInstrumentAttributes(Symbols, ...)

Arguments

Symbols

character vector of primary_ids of instruments

arguments to pass to getInstrument

Value

character vector of names of attributes that all Symbols' instruments have in common

Examples

Run this code
# NOT RUN {
ibak <- as.list(FinancialInstrument:::.instrument, all.names=TRUE)
Symbols <- c("SPY", "AAPL")
define_stocks(Symbols, addIBslot=FALSE)
update_instruments.SPDR("SPY")
update_instruments.TTR("AAPL", exchange="NASDAQ")
FindCommonInstrumentAttributes(Symbols)
FindCommonInstrumentAttributes(c(Symbols, "USD"))
reloadInstruments(ibak)
# }

Run the code above in your browser using DataLab