Quantopian's community platform is shutting down. Please read this post for more information and download your code.
Back to Community
How to get the list of IPOs?

I work on a project where I need to operate with the list of recent IPOs (let's say 2-3 years back). I think the algo in this post: Check for recent IPO is not helping me (does it work for anyone?) and the fetcher as well (how would I convert letter codes from my file to unique sids numbers) so I decided to type up the list of IPO for the last two years manually.

But even this seems to be confusing. For instance, I try to insert to my list company SNDX. The company with the same name - Syndax Pharmaceuticals Inc (offer day 3/3/2016) - has two sids. I thought that the benefit of using sid on Quantopian is that this is a unique identifier. How can I find out which sid is correct?

Of course, if there is any automatic way to generate the list for backtesting I would appreciate the advice.

def initialize(context):  
    #SNDX?  
    context.assets = [sid(47164), sid(49787)]  
2 responses

For instance, the same issue is also for AAAP stock.

Hello Martin,

Have a look at the attached code, to see if it'll work for you.

There's probably a way to do this in pipeline, as well, but I'm not up the learning curve yet.

Grant