Quantopian's community platform is shutting down. Please read this post for more information and download your code.
Back to Community
managing securities that get de-listed?

Is there a data source that lists when it was announced a given security would be de-listed? And when it was actually de-listed (these dates can sorta be derived from the Quantopian dataset)? Also, is there a standard wait time between announcement of de-listing and the de-listing itself? Or could a security just be de-listed any time (e.g. overnight, before the market opens)?

The reason I'm asking is that it would be valid to drop securities from a portfolio during a backtest only after the de-listing announcement, but not before, since this would introduce bias. And one might want to drop securities as soon as the de-listing is announced.

3 responses

I was just wondering this as well (especially when trading baskets that mimic an index). Perhaps checking the current exchange day versus an individual sids security_end_date?

in pseudo code:

if stock.security_end_date not today { remove_from_universe() }

Is that doable?

+1 for this to get solved somehow.