Quantopian's community platform is shutting down. Please read this post for more information and download your code.
Back to Community
Some securities does not have corresponding sector code in Quantopian database?

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.

1 response

Never mind. I solved it.