Value of tag 39 in an Execution Report after a Cancel/Replace message

Imported from previous forum

Hello,

We use FIX v4.2.
Our client send us a message of Cancel/Replace for an order that is partially filled.
What should be the value of the tag 39 in the Execution report message that we send back to the client?
39=5=Replaced or 39=1=Partially filled ?

Thanks for your help,
Pierre

[ original email was from John Prewett - jprewett@lavatrading.com ]
> Hello,
>
> We use FIX v4.2.
> Our client send us a message of Cancel/Replace for an order that is partially filled.
> What should be the value of the tag 39 in the Execution report message that we send back to the client?
> 39=5=Replaced or 39=1=Partially filled ?
>
> Thanks for your help,
> Pierre
>
Bonjour Pierre,

The correct answer is 39=1 (OrdStatus=partially filled).
Note that there should also be 150=5 (ExecType=replace).

If you look in the FIX.4.2 specification with errata, you will find an excellent example in Appendix D scenario D10.

You can greatly enhance your understanding of the standard by looking at the various scenarios in Appendix D. A good one to notice in this area is the case where the CancelReplace request decreases the OrderQty, resulting in the partially filled order being declared filled (scenario D12).

I hope this helps.