Hi,
in case of an insert nack, should we set tag 38 to the original order qty or should we set it to 0? I would think that 38 should be set to the original qty with both 14 and 151 to be set to 0. Am I correct?
Many thanks.
The definition for LeavesQty(151) says
If the OrdStatus (39) is Canceled, DoneForTheDay, Expired, Calculated, or Rejected (in which case the order is no longer active) then LeavesQty could be 0, otherwise LeavesQty = OrderQty (38) - CumQty (14).
OrderQty(38) should echo the input value when rejecting a NewOrderSingle(35=D). CumQty(14) can only be zero as nothing has been executed so far.