I can retrieve an individual stock's price data as follows:
import yfinance as yf
stockPrice = yf.Ticker("AAPL").history(period="max")["Close"] #by the way, ["Close"] is not strictly required.
Is there a way to retrieve the historical compounded price data of a stock exchange as a whole (e.g. AEX, IBEX, DAX, etc.)?
Any help is appreciated!