# Modifying existing order

**URL:** <https://forums.collective2.com/t/modifying-existing-order/1342>\
**Category:** C2 Software Development\
**Created:** [July 27, 2008, 10:08am UTC](https://forums.collective2.com/t/modifying-existing-order/1342 "2008-07-27T10:08:57Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![BorisLiberman](https://avatars.discourse-cdn.com/v4/letter/b/7feea3/32.png) [@BorisLiberman](https://forums.collective2.com/u/BorisLiberman)\
**Post date:** [July 27, 2008, 10:08am UTC](https://forums.collective2.com/t/modifying-existing-order/1342/1 "2008-07-27T10:08:57Z")

</div>

Hi!  
  
  
  
I’d like to know what exactly is the process of order modification? Suppose that the strategy decides to move a limit order from price 1000 to price 1001. Does it mean that the initial limit order is canceled and new one is issued at the new price? Or is there another mechanism?  
  
  
  
Thanks in advance.

---

<div class="post-metadata">

**Author:** ![Username](https://yyz2.discourse-cdn.com/flex028/user_avatar/forums.collective2.com/username/32/238_2.png) [@Username](https://forums.collective2.com/u/Username)\
**Post date:** [July 27, 2008, 10:21am UTC](https://forums.collective2.com/t/modifying-existing-order/1342/2 "2008-07-27T10:21:01Z")

</div>

Currently I believe a vendor would need to go to the ‘trade’ menu and find the pending order under ‘recent trade blotter’, and using the ‘Xrplc’ (cancel and replace) function so literally rather than editing an existing order it cancels the exisitng one and issues a new trade.

---

<div class="post-metadata">

**Author:** ![MatthewKlein](https://yyz2.discourse-cdn.com/flex028/user_avatar/forums.collective2.com/matthewklein/32/25317_2.png) [@MatthewKlein](https://forums.collective2.com/u/MatthewKlein)\
**Post date:** [July 27, 2008, 10:35am UTC](https://forums.collective2.com/t/modifying-existing-order/1342/3 "2008-07-27T10:35:16Z")

</div>

From a software developer’s point of view (i.e. someone writing an C2 compatible autotrading client software program), you will see the following sequence when polling the C2ATI:  
  
  
  
Initial order appears  
  
Cancel for initial order  
  
Once cancellation is confirmed as received by your client, new (replacement) order appears  
  
  
  
In other words, you do not need to develop any special mechanism to handle XRPLCs. It’s all done through the “primitives” of cancels and newsignals.  
  
  
  
MK
