I've been trying to get a list of all available tickers (listed and delisted) but the only ways i've found, pull data for each stock at the same time, which leads to out of memory errors. Is there a way to get just a list of all symbols?
QUANTCONNECT COMMUNITY
I've been trying to get a list of all available tickers (listed and delisted) but the only ways i've found, pull data for each stock at the same time, which leads to out of memory errors. Is there a way to get just a list of all symbols?
The material on this website is provided for informational purposes only and does not constitute an offer to sell, a solicitation to buy, or a recommendation or endorsement for any security or strategy, nor does it constitute an offer to provide investment advisory services by QuantConnect. In addition, the material offers no opinion with respect to the suitability of any security or specific investment. QuantConnect makes no guarantees as to the accuracy or completeness of the views expressed in the website. The views are subject to change, and may have become unreliable for various reasons, including changes in market conditions or economic circumstances. All investments involve risk, including loss of principal. You should consult with an investment professional before making any investment decisions.
Alexandre Catarino
Hi Tim,
You don't need to request price history at all for this — the daily universe-selection data already contains every US Equity trading on each day, point-in-time. Add a Fundamental universe whose filter returns every symbol, then request the universe history and keep only the symbols, sweeping the date range in chunks so only one chunk of universe data is in memory at a time:
Because each daily snapshot is point-in-time, sweeping a date range picks up every stock that traded during it — including ones that were delisted along the way. Widen the range (data goes back to 1998) to cover more of the delisted universe, or use a single recent day if you only want what is currently listed.
Two details worth knowing: each Symbol object embeds the security identifier (e.g. AAPL R735QTJ8XC9X), which stays stable across ticker renames, while symbol.value is the ticker as of that date. And the out-of-memory errors you hit come from holding price history for thousands of stocks at once — the snippet above never requests price data, so memory stays flat.
Docs reference: Research Environment > Universes > Get Universe Data.
Tim Nic
The material on this website is provided for informational purposes only and does not constitute an offer to sell, a solicitation to buy, or a recommendation or endorsement for any security or strategy, nor does it constitute an offer to provide investment advisory services by QuantConnect. In addition, the material offers no opinion with respect to the suitability of any security or specific investment. QuantConnect makes no guarantees as to the accuracy or completeness of the views expressed in the website. The views are subject to change, and may have become unreliable for various reasons, including changes in market conditions or economic circumstances. All investments involve risk, including loss of principal. You should consult with an investment professional before making any investment decisions.
To unlock posting to the community forums please complete at least 30% of Boot Camp.
You can continue your Boot Camp training progress from the terminal. We hope to see you in the community soon!