Back to Community

In the help page for quantopian under Classifier and over built in factors. There is a MarketCap factor I really want to use but is not under a specific import package. It should be under a specific chapter but it is not. Sorry for being so nitpicky about this, I just really want to use that factor!

Sorry for the dumb comment! If anyone could help me find the package for this factor : MarketCap.

2 responses

you can find market cap in morningstar.valuation.market_cap , here is the link to other fundamental data =)

below is a small piece of code for research environment to help you get started

from quantopian.pipeline import Pipeline, CustomFactor  
from quantopian.research import run_pipeline  
from import morningstar

def make_pipeline():  
    Market_cap= morningstar.valuation.market_cap.latest  
    return Pipeline(columns={'market_cap': Market_cap})

results=run_pipeline(my_pipe, '2015-01-01', '2015-01-01')  

Thanks Has!!! I guess the lack of sleep is getting to me!