How can I use
FinancialData to get the ticker symbols for a given index? For example suppose I want the tickers for all 500 stocks currently listed on the S&P 500. Can
FinancialData give me these tickers?
As the example in the documentation shows
should work, but it unfortunately returns
A working alternative is to use
instead. However, it has 506 entries and it is unclear when its last update was.
If you prefer the symbols as strings instead of entities, you can use
EntityValue[EntityClass["Financial", "SP500"], "Symbol"]