Hey, Quantopian,
I've just been playing around, iterating over all the securities in my universe every day to find the one that maximizes some function or other. However, sometimes when I do this and place an order, I get an OrderNonSecurity error. What does this mean, and how can I check for it before placing the order, or how can I handle it?
If I had to guess, I would guess this is because the security stopped existing during that day. But how do I detect that?