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?