I can get the current list of the S&P constituents using this: ek.get_data('0#.SPX',['TR.CommonName', 'TR.InstrumentIsActive', 'TR.CompanyMarketCap', 'TR.PriceClose']).
But I would like to be able to get the list on any given date that I would pass on to the code. Is there any way to do this? Thank you.