# Stock Indexes:
# Get the list of stock index options
tq_index_options()
# Get all stock symbols in a stock index
if (FALSE) {
tq_index("DOW")
}
# Stock Exchanges:
# Get the list of stock exchange options
tq_exchange_options()
# Get all stocks in a stock exchange
if (FALSE) {
tq_exchange("NYSE")
}
# Mutual Funds and ETFs:
# Get the list of stock exchange options
tq_fund_source_options()
# Get all stocks in a fund
if (FALSE) {
tq_fund_holdings("SPY", source = "SSGA")
}
Run the code above in your browser using DataLab