# Cancelled Report with CumQty Set

**URL:** <https://forum.fixtrading.org/t/cancelled-report-with-cumqty-set/2123>\
**Category:** General Q&A\
**Tags:** general-qa, xid\_165900, imported\
**Created:** [November 13, 2007, 8:23pm UTC](https://forum.fixtrading.org/t/cancelled-report-with-cumqty-set/2123 "2007-11-13T20:23:52Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![michaelstarkie\_x](https://avatars.discourse-cdn.com/v4/letter/m/4491bb/32.png) [@michaelstarkie\_x](https://forum.fixtrading.org/u/michaelstarkie_x)\
**Post date:** [November 13, 2007, 8:23pm UTC](https://forum.fixtrading.org/t/cancelled-report-with-cumqty-set/2123/1 "2007-11-13T20:23:52Z")

</div>

Imported from previous forum

---

<div class="post-metadata">

**Author:** ![michaelstarkie\_x](https://avatars.discourse-cdn.com/v4/letter/m/4491bb/32.png) [@michaelstarkie\_x](https://forum.fixtrading.org/u/michaelstarkie_x)\
**Post date:** [November 13, 2007, 8:23pm UTC](https://forum.fixtrading.org/t/cancelled-report-with-cumqty-set/2123/2 "2007-11-13T20:23:52Z")

</div>

Fix: 4.2  
If an order is partially filled when a cancel request is made what should the CumQty(14) and LeavesQty(151) reflect in the cancelled execution report?

According to the spec. both are required tags and LeavesQty should equal 0.

What about CumQty?

I don’t see anything stated about this field and one of our brokers is setting the value to zero in the Cancelled report even after reporting partial fills with correct CumQty set.

I would think this is ok as upstream systems should not be changing order state based on a cancelled report.

---

<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:** [November 14, 2007, 9:13am UTC](https://forum.fixtrading.org/t/cancelled-report-with-cumqty-set/2123/3 "2007-11-14T09:13:01Z")

</div>

[original email was from Andrew Scott - [ascott@latentzero.com](mailto:ascott@latentzero.com) ]  
\> Fix: 4.2 If an order is partially filled when a cancel request is made

> what should the CumQty(14) and LeavesQty(151) reflect in the cancelled  
> execution report?
> 
> According to the spec. both are required tags and LeavesQty  
> should equal 0.
> 
> What about CumQty?
> 
> I don’t see anything stated about this field and one of our brokers is  
> setting the value to zero in the Cancelled report even after reporting  
> partial fills with correct CumQty set.
> 
> I would think this is ok as upstream systems should not be changing  
> order state based on a cancelled report.

I agree that there should not be an issue with setting 14 CumQty to zero on an Execution Report Cancel Accept message. This is not something that should matter as only the status change is relevant in these circumstances.

The upstream system should be changing order status in response to this message, but should not amend the cumulative executed quantity, even if this is set to 0 on the cancel accept message.

---

<div class="post-metadata">

**Author:** ![hanno.klein](https://yyz2.discourse-cdn.com/flex010/user_avatar/forum.fixtrading.org/hanno.klein/32/38_2.png) [@hanno.klein](https://forum.fixtrading.org/u/hanno.klein)\
**Post date:** [November 14, 2007, 9:58am UTC](https://forum.fixtrading.org/t/cancelled-report-with-cumqty-set/2123/4 "2007-11-14T09:58:07Z")

</div>

Setting CumQty to zero in the ER responding to the Cancel takes away the possibility to cross check if you have received and processed all fills by comparing the quantities from the fills with the “final” value of CumQty in the response to the Cancel.

The rule to have LeavesQty=0 is there to allow an exception to the usual rule LeavesQty = OrderQty - CumQty as soon as (the remainder of) an order is cancelled.

I would therefore try to persuade your broker to send a “proper” CumQty value when responding to the Cancel as it represents an added value.

Regards,  
Hanno.

> Fix: 4.2 If an order is partially filled when a cancel request is made  
> what should the CumQty(14) and LeavesQty(151) reflect in the cancelled  
> execution report?
> 
> According to the spec. both are required tags and LeavesQty  
> should equal 0.
> 
> What about CumQty?
> 
> I don’t see anything stated about this field and one of our brokers is  
> setting the value to zero in the Cancelled report even after reporting  
> partial fills with correct CumQty set.
> 
> I would think this is ok as upstream systems should not be changing  
> order state based on a cancelled report.

---

<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:** [November 14, 2007, 10:24am UTC](https://forum.fixtrading.org/t/cancelled-report-with-cumqty-set/2123/5 "2007-11-14T10:24:22Z")

</div>

[original email was from Andrew Scott - [ascott@latentzero.com](mailto:ascott@latentzero.com) ]  
Hanno,

I agree that 14 CumQty should indeed be populated with the correct value, however would suggest that this is a ‘nice to have’ rather than an essential requirement, as there will be other indicators that something is amiss, and upstream systems will ignore this value on the cancel accept message anyway. It’s value comes in checking the logs afterwards.

> Setting CumQty to zero in the ER responding to the Cancel takes away the  
> possibility to cross check if you have received and processed all fills  
> by comparing the quantities from the fills with the “final” value of  
> CumQty in the response to the Cancel.
> 
> The rule to have LeavesQty=0 is there to allow an exception to the usual  
> rule LeavesQty = OrderQty - CumQty as soon as (the remainder of) an  
> order is cancelled.
> 
> I would therefore try to persuade your broker to send a “proper” CumQty  
> value when responding to the Cancel as it represents an added value.
> 
> Regards, Hanno.
> 
> > Fix: 4.2 If an order is partially filled when a cancel request is made  
> > what should the CumQty(14) and LeavesQty(151) reflect in the cancelled  
> > execution report?
> > 
> > According to the spec. both are required tags and LeavesQty should  
> > equal 0.
> > 
> > What about CumQty?
> > 
> > I don’t see anything stated about this field and one of our brokers is  
> > setting the value to zero in the Cancelled report even after reporting  
> > partial fills with correct CumQty set.
> > 
> > I would think this is ok as upstream systems should not be changing  
> > order state based on a cancelled report.

---

<div class="post-metadata">

**Author:** ![adityakhandekar\_x](https://avatars.discourse-cdn.com/v4/letter/a/9fc348/32.png) [@adityakhandekar\_x](https://forum.fixtrading.org/u/adityakhandekar_x)\
**Post date:** [November 22, 2007, 2:48am UTC](https://forum.fixtrading.org/t/cancelled-report-with-cumqty-set/2123/6 "2007-11-22T02:48:47Z")

</div>

Andrew,

I would say having a proper CumQty value even on cancel conformations would be best. Specially when you consider low touch trading, partial fills on pending cancels (with 150=1) is not unusual.

Having an incorrect tag 14 value in such cases could confuse the buy side applications.

PS: I do not think this is something too difficult for the engines to develop as summing up quantities seems to be one of the most mundane things…

---

<div class="post-metadata">

**Author:** ![ltaikit](https://yyz2.discourse-cdn.com/flex010/user_avatar/forum.fixtrading.org/ltaikit/32/743_2.png) [@ltaikit](https://forum.fixtrading.org/u/ltaikit)\
**Post date:** [November 14, 2007, 10:09am UTC](https://forum.fixtrading.org/t/cancelled-report-with-cumqty-set/2123/7 "2007-11-14T10:09:09Z")

</div>

See Order State Matrix D4 in Appendix D of the 4.2 spec for guidance. You will see that CumQty contains a non-zero value when a cancel request is successful for a partially filled order - CumQty contains the qty already filled. LeavesQty is 0.

> Fix: 4.2 If an order is partially filled when a cancel request is made  
> what should the CumQty(14) and LeavesQty(151) reflect in the cancelled  
> execution report?
> 
> According to the spec. both are required tags and LeavesQty  
> should equal 0.
> 
> What about CumQty?
> 
> I don’t see anything stated about this field and one of our brokers is  
> setting the value to zero in the Cancelled report even after reporting  
> partial fills with correct CumQty set.
> 
> I would think this is ok as upstream systems should not be changing  
> order state based on a cancelled report.

---

<div class="post-metadata">

**Author:** ![michaelstarkie\_x](https://avatars.discourse-cdn.com/v4/letter/m/4491bb/32.png) [@michaelstarkie\_x](https://forum.fixtrading.org/u/michaelstarkie_x)\
**Post date:** [November 15, 2007, 8:09pm UTC](https://forum.fixtrading.org/t/cancelled-report-with-cumqty-set/2123/8 "2007-11-15T20:09:18Z")

</div>

The example shows it thus but says this on pg. 97:

Execution information (e.g. new partial fill or complete fill) should not be communicated in the same report as one which communicates other state changes (such as pending cancel, pending replacecanceled, replaced, accepted, done for day etc).

> See Order State Matrix D4 in Appendix D of the 4.2 spec for guidance.  
> You will see that CumQty contains a non-zero value when a cancel request  
> is successful for a partially filled order - CumQty contains the qty  
> already filled. LeavesQty is 0.
> 
> > Fix: 4.2 If an order is partially filled when a cancel request is made  
> > what should the CumQty(14) and LeavesQty(151) reflect in the cancelled  
> > execution report?
> > 
> > According to the spec. both are required tags and LeavesQty should  
> > equal 0.
> > 
> > What about CumQty?
> > 
> > I don’t see anything stated about this field and one of our brokers is  
> > setting the value to zero in the Cancelled report even after reporting  
> > partial fills with correct CumQty set.
> > 
> > I would think this is ok as upstream systems should not be changing  
> > order state based on a cancelled report.

---

<div class="post-metadata">

**Author:** ![edwardcolletta13\_x](https://avatars.discourse-cdn.com/v4/letter/e/ea5d25/32.png) [@edwardcolletta13\_x](https://forum.fixtrading.org/u/edwardcolletta13_x)\
**Post date:** [November 15, 2007, 8:20pm UTC](https://forum.fixtrading.org/t/cancelled-report-with-cumqty-set/2123/9 "2007-11-15T20:20:13Z")

</div>

This text refers to not sending lastShares when cumunicating an cancelled or replaced status change. This does not refer to cumQty.

> The example shows it thus but says this on pg. 97:
> 
> Execution information (e.g. new partial fill or complete fill) should  
> not be communicated in the same report as one which communicates other  
> state changes (such as pending cancel, pending replacecanceled,  
> replaced, accepted, done for day etc).
> 
> > See Order State Matrix D4 in Appendix D of the 4.2 spec for guidance.  
> > You will see that CumQty contains a non-zero value when a cancel  
> > request is successful for a partially filled order - CumQty contains  
> > the qty already filled. LeavesQty is 0.
> > 
> > > Fix: 4.2 If an order is partially filled when a cancel request is  
> > > made what should the CumQty(14) and LeavesQty(151) reflect in the  
> > > cancelled execution report?
> > > 
> > > According to the spec. both are required tags and LeavesQty should  
> > > equal 0.
> > > 
> > > What about CumQty?
> > > 
> > > I don’t see anything stated about this field and one of our brokers  
> > > is setting the value to zero in the Cancelled report even after  
> > > reporting partial fills with correct CumQty set.
> > > 
> > > I would think this is ok as upstream systems should not be changing  
> > > order state based on a cancelled report.
