How does IB/Quantopian handle such a scenario? I am guessing the order is immediately canceled, but it is possible IB keeps the order active until shares are found.
Thanks for the help!
How does IB/Quantopian handle such a scenario? I am guessing the order is immediately canceled, but it is possible IB keeps the order active until shares are found.
Thanks for the help!
It depends, I think it's rejected if it's not shortable, but held if there are simply no shares to borrow. Quantopian will always fill it regardless (in simulation).
In my hedged basket algo I deleverage if one leg has failed to fill sufficiently to satisfy my hedge ratios to within some tolerance.