Quantopian's community platform is shutting down. Please read this post for more information and download your code.
Back to Community
ETF Only Pipeline

Does anyone have a ETF only pipeline that they would be willing to share? I've heard searching for stocks without morningstar fundamentals will produce an ETF only list, but I don't know how to implement that exactly as I don't have the strongest coding background.

3 responses

Actually ended up figuring it out, I think. These are the pipeline filters I used:

    not_lp_name = ~mstar.company_reference.standard_name.latest.matches('.* L[\\. ]?P\.?$')  
    not_lp_balance_sheet = mstar.balance_sheet.limited_partnership.latest.isnull()  
    etf = mstar.share_class_reference.symbol.latest.isnull()  
    not_otc = ~mstar.share_class_reference.exchange_id.latest.startswith('OTC')  
    not_wi = ~mstar.share_class_reference.symbol.latest.endswith('.WI')  
    not_depository = ~mstar.share_class_reference.is_depositary_receipt.latest  

How did you implement this as a pipeline?

Karl, I see you responded with a backtest but don't see it into this forum.