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

Created at 20 May 2020, 20:17
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!
CT

ctid692448

Joined 20.05.2020

58=ORDER_NOT_FOUND:Order with clientOrderId=74469463 not found.
20 May 2020, 20:17


Hello,

I am trying to cancel a previously placed limit order with:

8=FIX.4.4|9=098|35=F|34=0000003|49=pepperstone.3377170|52=20200520-17:04:20.474|56=cServer|11=1234567|41=74469463|10=192|

The limit order was sent with:

8=FIX.4.4|9=203|35=8|34=2|49=cServer|50=TRADE|52=20200520-17:04:20.236|56=pepperstone.3377170|11=9994260|14=0|37=74469463|38=1000|39=0|40=2|44=1.09712|54=1|55=1|59=1|60=20200520-17:04:20.226|150=0|151=1000|721=40828198|10=005|

And I get a rejection for my cancel request:

8=FIX.4.4|9=161|35=j|34=12|49=cServer|50=TRADE|52=20200520-17:04:24.275|56=pepperstone.3377170|58=ORDER_NOT_FOUND:Order with clientOrderId=74469463 not found.|379=1234567|380=0|10=108|

I can also see within cTrader that it is the correct order id but somehow it is not working. So why is the server not finding the order that I request to cancel?

Any help is highly appreciated.

Best regards,

Jan.

 


@ctid692448
Replies

PanagiotisCharalampous
21 May 2020, 08:34

Hi Jan,

Can you please post a screenshot showing the account, the order and the order id in cTrader?

Best Regards,

Panagiotis 

Join us on Telegram

 


@PanagiotisCharalampous

ctid692448
21 May 2020, 11:10 ( Updated at: 21 Dec 2023, 09:22 )

RE:

PanagiotisCharalampous said:

Hi Jan,

Can you please post a screenshot showing the account, the order and the order id in cTrader?

Best Regards,

Panagiotis 

Join us on Telegram

 

Order message:

8=FIX.4.4|9=155|35=D|34=0000002|49=pepperstone.3377170|52=20200521-08:06:44.015|56=cServer|11=0048402|38=0001000|40=2|44=001.09671|59=1|54=1|55=1|60=20200521-08:06:44.015|10=242|

Execution report:

8=FIX.4.4|9=203|35=8|34=2|49=cServer|50=TRADE|52=20200521-08:06:44.076|56=pepperstone.3377170|11=0048402|14=0|37=74625817|38=1000|39=0|40=2|44=1.09671|54=1|55=1|59=1|60=20200521-08:06:44.062|150=0|151=1000|721=40966287|10=005|

Order cancel request:

8=FIX.4.4|9=098|35=F|34=0000003|49=pepperstone.3377170|52=20200521-08:06:44.283|56=cServer|11=1234567|41=74625817|10=196|

Rejection:

8=FIX.4.4|9=160|35=j|34=3|49=cServer|50=TRADE|52=20200521-08:06:44.344|56=pepperstone.3377170|58=ORDER_NOT_FOUND:Order with clientOrderId=74625817 not found.|379=1234567|380=0|10=058|

 


@ctid692448

PanagiotisCharalampous
21 May 2020, 11:17

Hi Jan,

The order id in cTrader is different to the one you you are trying to cancel via FIX. In cTrader the order ID is 74625817 but you are trying to cancel an order with an ID 74469463

Best Regards,

Panagiotis 

Join us on Telegram


@PanagiotisCharalampous

ctid692448
21 May 2020, 11:53

RE:

PanagiotisCharalampous said:

Hi Jan,

The order id in cTrader is different to the one you you are trying to cancel via FIX. In cTrader the order ID is 74625817 but you are trying to cancel an order with an ID 74469463

Best Regards,

Panagiotis 

Join us on Telegram

Hi Panagiotis,

You compared the orderID from yesterday´s log with the one I posted today.

Please compare the orderIDs from the post above.

Order ID cTrader: 74625817

Order ID FIX message: 74625817


@ctid692448

PanagiotisCharalampous
21 May 2020, 12:09

Hi Jan,

You are passing a wrong ID in tag 47. In Tag 47 you should assign the client order ID (from your order FIX message seems to be 0048402), not the order ID.

Best Regards,

Panagiotis 

Join us on Telegram


@PanagiotisCharalampous

ctid692448
21 May 2020, 12:21 ( Updated at: 21 Dec 2023, 09:22 )

RE:

PanagiotisCharalampous said:

Hi Jan,

You are passing a wrong ID in tag 47. In Tag 47 you should assign the client order ID (from your order FIX message seems to be 0048402), not the order ID.

Best Regards,

Panagiotis 

Join us on Telegram

I also tried to send tag11 as tag41 but it is not working either.
The example above is from the fix doc and it shows that tag41 is different to tag11 in the cancel request.

Tag41 you get from the server within the execution report. And tag41 matches the order ID shown in cTrader.


@ctid692448

PanagiotisCharalampous
21 May 2020, 12:36

Hi Jan,

The example you posted does not show the order message, just the cancel message. Tag 41 needs to be tag 11 of your order message.

I also tried to send tag11 as tag41 but it is not working either.

Please provide the sequence of messages where you tried this.

Best Regards,

Panagiotis 

Join us on Telegram


@PanagiotisCharalampous

ctid692448
21 May 2020, 12:43 ( Updated at: 21 Dec 2023, 09:22 )

I figured it out by trial and error. Here is an example that is working:

Cancel request tag 41 must have the value from tag 11 of the previously sent order message.

 


@ctid692448

ctid692448
21 May 2020, 12:44

RE:

PanagiotisCharalampous said:

Hi Jan,

The example you posted does not show the order message, just the cancel message. Tag 41 needs to be tag 11 of your order message.

I also tried to send tag11 as tag41 but it is not working either.

Please provide the sequence of messages where you tried this.

Best Regards,

Panagiotis 

Join us on Telegram

Yes thanks, figured that out finally too. It´s mostly a bit tricky with FIX and it's documentations.


@ctid692448