# ClOrdID on Cancel executions

**URL:** <https://forum.fixtrading.org/t/clordid-on-cancel-executions/3249>\
**Category:** General Q&A\
**Tags:** general-qa, xid\_166658, imported\
**Created:** [March 26, 2002, 6:25pm UTC](https://forum.fixtrading.org/t/clordid-on-cancel-executions/3249 "2002-03-26T18:25:00Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![fplpo\_x](https://avatars.discourse-cdn.com/v4/letter/f/7ab992/32.png) [@fplpo\_x](https://forum.fixtrading.org/u/fplpo_x)\
**Post date:** [March 26, 2002, 6:25pm UTC](https://forum.fixtrading.org/t/clordid-on-cancel-executions/3249/1 "2002-03-26T18:25:00Z")

</div>

Imported from previous forum

---

<div class="post-metadata">

**Author:** ![fplpo\_x](https://avatars.discourse-cdn.com/v4/letter/f/7ab992/32.png) [@fplpo\_x](https://forum.fixtrading.org/u/fplpo_x)\
**Post date:** [March 26, 2002, 6:25pm UTC](https://forum.fixtrading.org/t/clordid-on-cancel-executions/3249/2 "2002-03-26T18:25:00Z")

</div>

[original email was from merlin beake - [merlin.beake@reuters.com](mailto:merlin.beake@reuters.com) ]  
In the scenario:

Order: Buy 1000 MSFT, limit $50  
ClOrdID=MyOrder1

(Order accepted)

Execution Report:  
ExecID=MyExec2  
ClOrdID=MyOrder1  
LastShares=300

Change Order: Buy 1000 MSFT, limit $51  
ClOrdID=MyOrder2  
OrigClOrdID=MyOrder1

(change accepted)

Execution Report:  
ExecID=MyExec5  
ExecTransType=Cancel  
ExecRefID=MyExec2  
ClOrdID=?

Should the ClOrdID on the Cancel execution reference MyOrder1 or MyOrder2?

merlin

---

<div class="post-metadata">

**Author:** ![fplpo\_x](https://avatars.discourse-cdn.com/v4/letter/f/7ab992/32.png) [@fplpo\_x](https://forum.fixtrading.org/u/fplpo_x)\
**Post date:** [March 27, 2002, 8:49am UTC](https://forum.fixtrading.org/t/clordid-on-cancel-executions/3249/3 "2002-03-27T08:49:00Z")

</div>

[original email was from Ian Orford - [ian.orford@drkw.com](mailto:ian.orford@drkw.com) ]  
My view is that at the order level, the correct ClOrdID is now MyOrder2, and hence all execution reports should refer to this.

However, since its not made clear in the spec, I guess the safest thing is to accept both as the buy-side and be able to send either as the sell-side.

\> In the scenario:  
\>  
\> Order: Buy 1000 MSFT, limit $50  
\> ClOrdID=MyOrder1  
\>  
\> (Order accepted)  
\>  
\> Execution Report:  
\> ExecID=MyExec2  
\> ClOrdID=MyOrder1  
\> LastShares=300  
\>  
\> Change Order: Buy 1000 MSFT, limit $51  
\> ClOrdID=MyOrder2  
\> OrigClOrdID=MyOrder1  
\>  
\> (change accepted)  
\>  
\> Execution Report:  
\> ExecID=MyExec5  
\> ExecTransType=Cancel  
\> ExecRefID=MyExec2  
\> ClOrdID=?  
\>  
\> Should the ClOrdID on the Cancel execution reference MyOrder1 or MyOrder2?  
\>  
\> merlin  
\>

---

<div class="post-metadata">

**Author:** ![scott.atwell](https://avatars.discourse-cdn.com/v4/letter/s/51bf81/32.png) [@scott.atwell](https://forum.fixtrading.org/u/scott.atwell)\
**Post date:** [March 27, 2002, 12:26pm UTC](https://forum.fixtrading.org/t/clordid-on-cancel-executions/3249/4 "2002-03-27T12:26:00Z")

</div>

According to scenario #38 in FIX 4.3’s Vol 4’s “Order State Change Matrices”, ClOrdID should be MyOrder2 on the cancel or correct ExecTransType.

I am assuming that "(change accepted)" implies that an ExecRpt has been sent with ExecType=Replaced establishing the fact that MyOrder2 has superceded MyOrder1.

\> In the scenario:  
\>  
\> Order: Buy 1000 MSFT, limit $50  
\> ClOrdID=MyOrder1  
\>  
\> (Order accepted)  
\>  
\> Execution Report:  
\> ExecID=MyExec2  
\> ClOrdID=MyOrder1  
\> LastShares=300  
\>  
\> Change Order: Buy 1000 MSFT, limit $51  
\> ClOrdID=MyOrder2  
\> OrigClOrdID=MyOrder1  
\>  
\> (change accepted)  
\>  
\> Execution Report:  
\> ExecID=MyExec5  
\> ExecTransType=Cancel  
\> ExecRefID=MyExec2  
\> ClOrdID=?  
\>  
\> Should the ClOrdID on the Cancel execution reference MyOrder1 or MyOrder2?  
\>  
\> merlin  
\>
