get_index: Get all members of an index

Description Usage Arguments Details Examples

View source: R/plainSrc.R

Description

gets the the members of a given index such as ATX. The library does not limit the number of indices as long as the used data sources are supporting them

Usage

1
get_index(index_name, src = "yahoo", country = "germany")

Arguments

index_name

The name of the Index

src

The source that should be use (Yahoo or fcs)

country

The country of the specified index (necessary if fcs is used as source)

Details

the method offers a source parameter to determine which type of src should be used. The default one is yahoo. Thereby, the members are taken from yahoo and the identifiers/sedol are taken from stockmarketmba.com

The second type of implemented source is fcs. Here, only fcs is used as this data source uses symbol names that are incompatible with stockmarketmba.com. So no identifier and sedol are provided so far for that source. Be careful: fcs uses an open API key which might be overused!!!

Yahoo and fcs use completely different interfaces: for yahoo we were using the data from the website while for fcs we were using the API

stockmarketmba.com doesn't provide identifiers for all shares and symbols so it might be NA

Attention: fcs and yahoo use DIFFERENT symbols

AS DIFFERENT KIND OF SOURCES ARE USED, THE QUERIES ARE PRETTY SLOW

Examples

1
2
3
4
5
6
get_index("DAX","fcs","germany")
get_index("ATX")
get_index("GDAXI") #identifiers are at least partly available
get_index("SOMA")
get_index("IXIC")
get_index("OMX")

anewruser/finance documentation built on Dec. 19, 2021, 3:36 a.m.