Quantopian's community platform is shutting down. Please read this post for more information and download your code.
Back to Community
Newbie question: adding portfolio positions to pipeline

If I use base_universe of Q500US in my pipeline, how can I add stock held to the pipeline universe?
Documentation lists update_universe as deprecated and I can't see any other option.

2 responses

Hello Egor,

If you look on the help page, you'll find https://www.quantopian.com/help#built-in-filters. There, see StaticAssets and StaticSids. See also https://www.quantopian.com/posts/using-a-specific-list-of-securities-in-pipeline.

Is this what you need?

screen = original_screen | StaticAssets(context.portfolio.positions.keys()) would be nice.