Back

List of symbols from universe

I am trying to get a list of symbols for a universe so I can iterate through each symbol. This is so I dont have to create a symbol list manually. It can update based on the universe requirements.

Does anyone know how to do this?

Thanks,
Tayler Allen

Update Backtest








AddEquity creates a Security object and subcribes to data updates. In the process of creating a Security, a Symbol object is also created, it is added to a cache so that we can use either the Symbol object or the string (implicit conversion) in all the methods that required a Symbol object as input.
Please add a concrete example of the trouble you are having. Let's make it work!

1

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.


Hi 

How about python? Is there a equivalent for "userdefineduniverse" for python? Or is there a "finefiltereduniverse forpython"?

0

https://www.quantconnect.com/forum/discussion/3682/algo-framework-etf-momentum-rebalancing-using-mean-variance-optimizationhttps://github.com/QuantConnect/Lean/blob/56bbc4c3da747dcf021c8221eb54b43ad075b3d7/Algorithm.Python/ConstituentsQC500GeneratorAlgorithm.pyhttps://github.com/QuantConnect/Lean/blob/master/Algorithm.Python/UniverseSelectionRegressionAlgorithm.pyhttps://github.com/QuantConnect/Lean/blob/cbd953437f987392f2c2e154adcb7d43d684b7f1/Algorithm.Python/CoarseFineFundamentalComboAlgorithm.pyhttps://github.com/QuantConnect/Lean/blob/cbd953437f987392f2c2e154adcb7d43d684b7f1/Algorithm.Python/EmaCrossUniverseSelectionAlgorithm.py
0

Update Backtest





0

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.


Loading...

This discussion is closed