Hi,
I'm trying to find the best way to get the order status to be clean before issuing another order. In other words, how can I quickly check that there is no order currently either WORKING, PLACING, CANCELING, PARTIALFILL, UPDATING? I don't care if there was a previous order that was FILLED, REJECTED or CANCELLED. I just want to avoid issing a new order if one of the conditions in the first list of conditions is not present. Please give an example code line. I think it'd be tremendously helpful if there was a call like, Trade.isOrderInProcess(symbol) that will return true is one of the conditions in the first list is true.
Thanks,
_esigtrader
I'm trying to find the best way to get the order status to be clean before issuing another order. In other words, how can I quickly check that there is no order currently either WORKING, PLACING, CANCELING, PARTIALFILL, UPDATING? I don't care if there was a previous order that was FILLED, REJECTED or CANCELLED. I just want to avoid issing a new order if one of the conditions in the first list of conditions is not present. Please give an example code line. I think it'd be tremendously helpful if there was a call like, Trade.isOrderInProcess(symbol) that will return true is one of the conditions in the first list is true.
Thanks,
_esigtrader
Comment