Back

Researching Sectors

Evening,

I'm new to the Quantconnect community and I've started to do some research on the platform. This might be super basic, but I can't work out to request sector data (in python) besides manually grabbing a list of company tickers' and running it through a loop. 

 

Thoughts?

Update Backtest








Can you post some code you used? Elliot Parker 

0

Huy Hoang thanks for the response; I don't have any code as from my reading of the documentation I couldn't see this ability being directly supported.

0

Elliot Parker You're right. I don't see sector data in the Data Library

Jared Broad Is there GICS sector field in the data that QuantConnect offers? If not, please consider adding it because it's really a standard in investing. Please refer to GICS via these links:

https://www.msci.com/gicshttps://en.wikipedia.org/wiki/Global_Industry_Classification_Standard
0

Huy Hoang Agreed, It would make basic analysis a lot easier.

0

hi i am not an python developer but could you guys please explain me line 96 in this example?

what does IndustryTemplateCode mean with comment above:

# select stocks with top dollar volume in every single sector 

https://github.com/QuantConnect/Lean/blob/master/Algorithm.Python/ConstituentsQC500GeneratorAlgorithm.py
0

/// <summary>
/// This indicator will denote which one of the six industry data collection templates applies to the company. Each industry data
/// collection template includes data elements that are commonly reported by companies in that industry. N=Normal
/// (Manufacturing), M=Mining, U=Utility, T=Transportation, B=Bank, I=Insurance
/// </summary>
/// <remarks>
/// Morningstar DataId: 11
/// </remarks>
[JsonProperty("11")]
public string IndustryTemplateCode { get; set; }
https://github.com/QuantConnect/Lean/blob/26c46cb18209751272035d22abd3d7f6ea23c03f/Common/Data/Fundamental/Generated/CompanyReference.cs#L110
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