58=ORDER_NOT_FOUND:Order with clientOrderId=786574 not found.

Created at 16 Oct 2023, 20:07
How’s your experience with the cTrader Platform?
Your feedback is crucial to cTrader's development. Please take a few seconds to share your opinion and help us improve your trading experience. Thanks!
BE

beny.2k1

Joined 16.10.2023

58=ORDER_NOT_FOUND:Order with clientOrderId=786574 not found.
16 Oct 2023, 20:07


Hello. I am trying to cancel a market order using FIX API; it is returning the error 58=ORDER_NOT_FOUND:Order with clientOrderId. Solutions will be appreciated. NewOrderSingle Sent: 8=FIX.4.4|9=155|35=D|49=demo.pepperstone.3830707|56=cServer|57=TRADE|50=tEST|34=2|52=20231016-19:53:46|11=786574|55=1|54=1|60=20231016-19:53:46|38=15000|40=1|494=From FIX|10=004| 

 

Execution Report Received: 8=FIX.4.4|9=221|35=8|34=2|49=cServer|50=TRADE|52=20231016-19:53:47.226|56=demo.pepperstone.3830707|57=tEST|11=786574|14=0|37=226910532|38=15000|39=0|40=1|54=1|55=1|59=3|60=20231016-19:53:47.188|150=0|151=15000|494=From FIX|721=120701892|10=002| 

 

OrderCancelRequest Sent: 8=FIX.4.4|9=107|35=F|49=demo.pepperstone.3830707|56=cServer|57=TRADE|50=tEST|34=2|52=20231016-20:01:52|41=786574|11=I98087|10=064| 

 

OrderCancelReject Received: 8=FIX.4.4|9=170|35=j|34=2|49=cServer|50=TRADE|52=20231016-20:01:53.167|56=demo.pepperstone.3830707|57=tEST|58=ORDER_NOT_FOUND:Order with clientOrderId=786574 not found.|379=I98087|380=0|10=156|


@beny.2k1
Replies

PanagiotisChar
17 Oct 2023, 04:12 ( Updated at: 18 Oct 2023, 05:19 )

Hi there,

In order to cancel an order, you need to use Order Cancel Request

https://help.ctrader.com/fix/specification/#order-cancel-request-msgtype35f

 


@PanagiotisChar