Quantopian's community platform is shutting down. Please read this post for more information and download your code.
Back to Community
How do you calculate CAPM on Quantopian using the New Pipeline

Hello all. I am new to Quantopian and I am trying to calculate CAPM using the new pipeline. I have seen: this link
but I am struggling. I need a way to calculate CAPM that works in my Pipeline without needing to identify explicitly the equity I would like to calculate CAPM for nor the start and end date. Any help would be deeply appreciated.

(https://www.quantopian.com/lectures/the-capital-asset-pricing-model-and-arbitrage-pricing-theory)

1 response

To be more specific, I am trying to use CAPM to calculate WACC ( Weighted Average Cost of Capital). If anyone has a solution to calculate WACC for all stocks going through the pipeline then that would be ideal (I have already completed everything else required for WACC)