Hello,
I am trying to get sector codes for some stocks. This is an algorithm I used for getting the specific sector codes.
It is very interesting that sector codes for some securities are available while others are not.
For example, by using this algorithm, I can get AAPL's sector code, which is 311. However, if I change the symbol to "ARNC" [sid(2)], the algorithm will run into error. Anyone know why it is or it's just lack of data?
Thank you for you time.