Quantopian's community platform is shutting down. Please read this post for more information and download your code.
Back to Community
Make a new sorted list of stocks?

I'm learning Python and Quantopian and at this point I'd like to sort a list of stocks based on attributes (for instance Volume) and then make a new shorter list from the top of the sorted list. I can't quite figure it out. Any help appreciated!

2 responses

Hi Jens,

You may assign your handpicked basket_of_stocks into StaticAssets as your universe, define that as a mask to filter for the attributes eg. AverageDailyVolume in Pipeline, and then sort the values.

You may find the attached example useful.

Hope it helps.

Thank you Karl! Cloned and looking forward to diving in :)