Hello,
I am trying to access the market cap of every stock in a list and haven't been successful > have been trying self.securities[ticker].Fundamentals but can't figure out how to access the market cap. I want to save it to a rolling window dictionary of self.marketcaps[ticker] so I can access it later, that part I can do just cant figure out how to get the value
Michaelpet17
I found this below but as PE ratio and changed it to market cap, but I still have no idea what it's doing or how it's doing it.
My end goal is if I could call on all the tradable stocks and check the market cap then run my analysis on those that fit my market cap criteria that would be awesome, but I have no idea how to do this still
Michaelpet17
Figured it out! I'm still not sure how it works but I believe that it adds every single ticker to the universe in the course setting and then filters out those by market cap using the fine selection. Hope someone can find this usefull!
Michaelpet17
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!