Quantopian's community platform is shutting down. Please read this post for more information and download your code.
Back to Community
Market Cap of SP500

Is there a way to get the market cap of the SP500 (or very close to)? I could have pipeline output stocks with market caps, then add the top 500, but I'd rather do this within pipeline instead of after.

I'm at a loss for where to start here. Anyone have ideas?

1 response

Right, that's summing them up outside of the pipeline. I'd like to do it within pipeline preferably. That's also the Q500, which to my knowledge is very similar (but not identical) to the SP500