I'd like to cancel all open orders for that strategy when a message like that comes in because if there are shares found later in the day, it could execute the trade at an undesirable price.
Or an alternative would be to close any open orders if the price is more than x% away from the time of the order.
Is there any way to implement either of those?

Comment