Hello,
From the documentation, I learn the following way to add individual equity; but is there way to add the whole universe without adding each symbol? For example, I want to add all symbols = MorningstarSectorCode.Technology, and search for tech stocks that meet fundamental criteria overtime. What would be the best approach? Thanks
qb = QuantBook()
symbols=["SPY","VMW","TWTR","ADBE","W","UBER","LYFT","WORK","FB","PINS","SQ","MSFT"]
for symbol in symbols:
qb.AddEquity(symbol)
history = qb.History(qb.Securities.Keys, 253, Resolution.Daily)
Derek Melchin
Hi Hua,
Universe selection is not currently supported in the research environment. For now, this can only be done during a backtest.
For the securities we manually enter into the research environment, we can request historical fundamental data by using the GetFundamental method.
qb = QuantBook() aapl = qb.AddEquity("AAPL").Symbol qb.GetFundamental([aapl], "AssetClassification.MorningstarIndustryCode", datetime(2019, 1, 4), datetime.now())
Review our documentation for more information.
Best,
Derek Melchin
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.
Hua Wang
Thanks Derek! hopefully universe selection can be supported in the research environment in near future..
Best,
Hua
Big mak
Would also love for this feature to be added. It feels like I'm trying to do my research in the backtester which is really frustrating to use instead of a notebook.
Doug B
Is Universe Selection supported in the research environment? If not yet, when?
Derek Melchin
Hi Doug,
Subscribe to GitHub Issue #1614 to track the feature progress.
Best,
Derek Melchin
Want to invest in QuantConnect as we build the Linux of quant finance? Checkout our Wefunder campaign to join the revolution.
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.
Hua Wang
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!