<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[How to get stocks in SP500 index at a given time]]></title><description><![CDATA[<p dir="auto">The data has more than 500 stocks. I know it includes stocks that used to belong to SP500. For instance for (2026, 2, 24):</p>
<pre><code>from qnt.data import stocks_load_spx_list
len(stocks_load_spx_list(min_date='2026-02-24', max_date='2026-02-24'))
</code></pre>
<p dir="auto">gives 842.</p>
<p dir="auto">Filtering NaNs gives me 658 stocks, which is still more than 500.</p>
<p dir="auto">For a given date, I'd like to exclude the weights for those that are out (no forward-looking involved).</p>
]]></description><link>http://quantiacs.com/community/topic/781/how-to-get-stocks-in-sp500-index-at-a-given-time</link><generator>RSS for Node</generator><lastBuildDate>Tue, 07 Apr 2026 20:55:43 GMT</lastBuildDate><atom:link href="http://quantiacs.com/community/topic/781.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 05 Apr 2026 17:28:09 GMT</pubDate><ttl>60</ttl></channel></rss>