@stefanm said in How to get stocks in SP500 index at a given time:
is_liquid_spec = is_liquid.sel(time=date)
members_spec = is_liquid_spec.coords["asset"][is_liquid_spec == 1.0].asset.values
Thanks for the reply! I have some further questions.
Is it the case that the dataset does not contain all symbols in the index? If I plot the number of stocks it started from around 350 then increases to 500.c80c9110-826a-4349-8125-f3641fad0e09-image.png
There are some symbols and their counterparts with suffix ~1, for instance NAS:FISV and NAS:FISV~1, what does it mean?f16737ac-577b-44ea-b698-fdd1164f4dd9-image.png