Invalid Tag Number on New Single Order Message

Created at 28 May 2019, 10:10
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!
ZO

zobad.mahmood

Joined 28.05.2019

Invalid Tag Number on New Single Order Message
28 May 2019, 10:10


Dear Support Team,

I was trying to integrate my fix based application with ctrader fix api so that I could test my application.

I tried sending new order single message but it returned invalid tag number and I cant figure out where the problem is.

Kindly help me resolve this issue

Sent Message:

07:04:55.455|56=cServer|57=TRADE|1=3224624|11=20190528100455.4552_0003|38=1000.0|40=2|44=1.52000|54=1|55=1|59=0|60=20190528-10:04:55.455|10=106|

Received Message

20190528-07:04:55.524 : 8=FIX.4.4|9=130|35=3|34=59|49=cServer|50=TRADE|52=20190528-07:04:55.536|56=ctrader.3224624|57=QUOTE|45=58|58=Invalid tag number|371=1|372=D|373=0|10=171|

 

Thanks

Zobad

 


@zobad.mahmood
Replies

PanagiotisCharalampous
28 May 2019, 10:38

Hi zobad.mahmood,

Thanks for posting in our forum. Your message ddes not seem to be a correct logon message. See an example of a logon message below

8=FIX.4.4|9=126|35=A|49=theBroker.12345|56=CSERVER|34=1|52=20170117- 08:03:04|57=TRADE|50=any_string|98=0|108=30|141=Y|553=12345|554=passw0rd!|10=131| 

You can find more information here.

Best Regards,

Panagiotis


@PanagiotisCharalampous

zobad.mahmood
28 May 2019, 14:23

Hi Panagiotis,

Thank you for your quick reply. I have added the logon fix message log below. 

20190528-11:17:57.330 : 8=FIX.4.4|9=131|35=A|34=1|49=ctrader.3224624|50=QUOTE|52=20190528- 11:17:57.016|56=cServer|57=TRADE|98=0|108=30|141=Y|553=3224624|554=Gtltrading125|10=197|
20190528-11:17:57.484 : 8=FIX.4.4|9=101|35=A|34=1|49=cServer|50=TRADE|52=20190528-11:17:57.483|56=ctrader.3224624|57=QUOTE|98=0|108=30|141=Y|10=004|

 

Kindly advice me on what to do.

Thanks again,

Zobad


@zobad.mahmood

PanagiotisCharalampous
28 May 2019, 14:38

Hi Zohad,

I do not see any problems in the messages. Can you tell us what is the issue?

Best Regards,

Panagiotis


@PanagiotisCharalampous

zobad.mahmood
28 May 2019, 15:07

RE:

Panagiotis Charalampous said:

Hi Zohad,

I do not see any problems in the messages. Can you tell us what is the issue?

Best Regards,

Panagiotis

Hi Panagiotis,

The issue is I cant send new order message over FIX. Whenever, I place new order single message I get reject message with reason invalid tag number. I cant seem to figure out where the issue is.

Message Sent:

20190528-11:59:13.835 : 8=FIX.4.4|9=184|35=D|34=83|49=ctrader.3224624|50=QUOTE|52=20190528-11:59:13.832|56=cServer|57=TRADE|1=3224624|11=20190528145913.8059_0001|38=10000.0|40=1|54=1|55=EUR/USD|59=0|60=20190528-14:59:13.819|10=131|

Message Received:

20190528-11:59:13.954 : 8=FIX.4.4|9=130|35=3|34=84|49=cServer|50=TRADE|52=20190528-11:59:13.958|56=ctrader.3224624|57=QUOTE|45=83|58=Invalid tag number|371=1|372=D|373=0|10=174|

Thanks

Zobad


@zobad.mahmood

PanagiotisCharalampous
28 May 2019, 15:18

Hi Zobad,

The previous messages you posted were logon messages. In your order message I can already see an issue with tag 59. 0 is not a valid value. Symbol is also wrong. It should be an integer. I would advise you to have a look at the Rules of Engagement to check what are the valid values for each tag.

Best Regards,

Panagiotis


@PanagiotisCharalampous

zobad.mahmood
28 May 2019, 16:19

Hi Panagiotis,

Thankyou for your help.

I made changes to Symbol tag and changed it to 1, I also removed the TIF tag, for Day. I am however receiving the same message.

 

20190528-13:11:17.521 : 8=FIX.4.4|9=168|35=D|34=2|49=ctrader.3224624|50=QUOTE|52=20190528-13:11:17.517|56=cServer|57=TRADE|1=3224624|11=20190528161113.4101_0001|38=1.1|40=1|54=1|55=1|60=20190528-16:11:13.412|10=166|

20190528-13:11:17.591 : 8=FIX.4.4|9=128|35=3|34=2|49=cServer|50=TRADE|52=20190528-13:11:17.641|56=ctrader.3224624|57=QUOTE|45=2|58=Invalid tag number|371=1|372=D|373=0|10=049|

Thank you,

Zobad


@zobad.mahmood

PanagiotisCharalampous
28 May 2019, 16:32

Hi Zobad,

This time you introduced tag 1 which I don't know where you found :) Did you check the Rules of Engagement?

Best Regards,

Panagiotis


@PanagiotisCharalampous

zobad.mahmood
29 May 2019, 10:59

Hi Panagiotis,

Thank you again for all your help and been patient with me. I was able to place order over FIX successfully. However, when receiving execution report there were some required tags(ExecID plus other tags) that were missing from the execution report I received from CTrader server. This is a problem for us because before we were using datadictionary that required these tags that CTrader did not send.

So, is there a data dictionary xml file available for cTrader so we can use that with our software to determine which fields are required and which are not.

Thank you

Zobad


@zobad.mahmood