Quantopian's community platform is shutting down. Please read this post for more information and download your code.
Back to Community
Help writing my first backtesting algorithm?

Hi, apologies if this is the wrong place to post this - please direct me to the right place if so.

I'm trying to develop an algorithm and the first thing I want to do is, each day at market open, filter all of the stocks Quantopian has, and get only the ones that traded a total volume above a specific threshold in the pre-market (aka, from start of day to 9:30).

I've looked into Pipelines but I'm not sure that they would be useful for this task, because I need this filter to run at a specific time of day (and later on I might want to move it to a different time) and from what I've read so far, you can't control when Pipelines are run, or something?

So far, I'm aware that you can get specific stock data by using symbol("aapl") or sid(24), but I haven't yet been able to find a way to search/filter through all of the available stocks myself.

I guess I might be able to just loop through sids from 0 to 10000 or something? but that seems a bit silly.

Any help is greatly appreciated :)