S&P 500 Index Replication with Python
S&P500_Index_Replication.ipynb: Jupyter Notebook (ready to run in Google Colab) which outputs an xlsx file containing a replica of the SP500. Data are approximate/fictitious as the token to obtain real data is not free of charge.
secrets.py: Contains token information for the API.
sp500_companies.csv: Contains information on SP500 companies. It is used to obtain the list of Tickers.