Imported from previous forum
[ original email was from Muthian Ratinasabapati - mrati@ctp.com ]
Question:
It is not clear to me from the FIX 4.0 which client order ids need to be used by the sell-side while responding to cancel and cancel/replace requests. here is my interpretation and correct me if I am wrong.
BUY-SIDE SELL-SIDE (exec rpt)
New Order New Order Ack
ClOrdId=ORD1 ClOrdId=ORD1
New Order Reject
ClOrdId=ORD1
Cancel/Replace Cancel/Replace Reject
ClOrdId=ORD2 ClOrdId=ORD1
OrigClOrdId=ORD1
Cancel/Replace Pending
ClOrdId=ORD1
Cancel/Replace Ack
ClOrdId=ORD2
Cancel Cancel Reject
ClOrdId=ORD2 ClOrdId=ORD1
OrigClOrdId=ORD1
Cancel Pending
ClOrdId=ORD1
Cancel Ack
ClOrdId=ORD2
Cheers,
Muthian Ratinasabapati
Cambridge Technology Partners
mrati@ctp.com
[ original email was from Vitaliy Kantor - kantorv@ms.com ]
According to Appendix D of the Spec and descriptions of Execution and CancelReject messages ClOrdID in these messages indicates the id of last action on the order, that means ClOrdID of Cancel(Cancel/Replace) requests.
Therefore in your example for Cancel and Cancel/Replace all responses should have ClOrdID=ORD2 and OrigClOrdID=ORD1.
> Question:
>
> It is not clear to me from the FIX 4.0 which client order ids need to be used by the sell-side while responding to cancel and cancel/replace requests. here is my interpretation and correct me if I am wrong.
>
>
>
> BUY-SIDE SELL-SIDE (exec rpt)
>
> New Order New Order Ack
> ClOrdId=ORD1 ClOrdId=ORD1
>
>
> New Order Reject
> ClOrdId=ORD1
>
> Cancel/Replace Cancel/Replace Reject
> ClOrdId=ORD2 ClOrdId=ORD1
> OrigClOrdId=ORD1
>
> Cancel/Replace Pending
> ClOrdId=ORD1
>
> Cancel/Replace Ack
> ClOrdId=ORD2
>
> Cancel Cancel Reject
> ClOrdId=ORD2 ClOrdId=ORD1
> OrigClOrdId=ORD1
>
> Cancel Pending
> ClOrdId=ORD1
>
> Cancel Ack
> ClOrdId=ORD2
>
> Cheers,
>
> Muthian Ratinasabapati
> Cambridge Technology Partners
> mrati@ctp.com
>
>