Can't route request in FIX API

Created at 19 May 2021, 09:53
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!
SH

shoaibmalek02

Joined 17.05.2021

Can't route request in FIX API
19 May 2021, 09:53


I'm trying to connect to Spotware FIX API & I get this error 58=Can't route request.

 

My FIX Message is:

8=FIX.4.4|9=121|35=A|34=1|49=icmarkets.8060881|50=TRADE|57=TRADE|52=20210519-06:22:54.239|56=CSERVER|98=0|141=Y|108=30|553=8060881|554=*******|10=095

The response I received:

8=FIX.4.4|9=108|35=5|34=1|49=CSERVER|50=TRADE|52=20210519-06:22:54.304|56=icmarkets.8060881|57=TRADE|58=Can't route request|10=127


@shoaibmalek02
Replies

swapd0
26 May 2021, 13:33

Hi, I'm having the same error, did you find the solution? 


@swapd0

shoaibmalek02
26 May 2021, 14:10

swapd0 said:

Hi, I'm having the same error, did you find the solution? 

It's an issue of sendCompID. Use "demo.<sendCompID>" if you are using demo account.


@shoaibmalek02

swapd0
26 May 2021, 15:08

RE:

shoaibmalek02 said:

swapd0 said:

Hi, I'm having the same error, did you find the solution? 

It's an issue of sendCompID. Use "demo.<sendCompID>" if you are using demo account.

I don't have a demo account, I've tried with icmarkets.<userNumber> (the same that is shown in ctrader FIX API), live.<userNumber>, demo.<userNumber> and live.icmarkets.<userNumber> and all of them fails.

 


@swapd0

PanagiotisCharalampous
26 May 2021, 15:24 ( Updated at: 21 Dec 2023, 09:22 )

Hi swapd0,

Can you send us a screenshot of your FIX API Section?

Best Regards,

Panagiotis 

Join us on Telegram

 


@PanagiotisCharalampous

swapd0
26 May 2021, 15:36 ( Updated at: 21 Dec 2023, 09:22 )

This is my logon string

8=FIX.4.4|9=122|35=A|49=icmarkets.1051433|56=CSERVER|57=QUOTE|34=1|52=20210526-12:09:44|98=0|108=30|141=Y|553=1051433|554=*****|10=037|

 


@swapd0

PanagiotisCharalampous
26 May 2021, 16:06

Hi swapd0,

live.icmarkets.<userNumber> should've worked. Can you please tell us the proxy you are using and provide us with the exact messages exchanged with timestamps so that we can check?

Best Regards,

Panagiotis 

Join us on Telegram


@PanagiotisCharalampous

swapd0
26 May 2021, 16:25 ( Updated at: 21 Dec 2023, 09:22 )

Right now I've cTrader web open and I can see the charts.

 

Sended

8=FIX.4.4|9=122|35=A|49=live.icmarkets.1051433|56=CSERVER|57=QUOTE|34=1|52=20210526-13:19:19|98=0|108=30|141=Y|553=1051433|554=*****|10=041|

Received

8=FIX.4.4|9=104|35=5|34=1|49=CSERVER|50=QUOTE|52=20210526-13:19:20.097|56=live.icmarkets.1051433|58=Can't route request|10=083|

 

Not sure what you mean about the proxy, I think that I've nothing configurated there. Sorry, but networks are not my field. 

 


@swapd0

PanagiotisCharalampous
26 May 2021, 16:32

Hi swapd0,

Not sure what you mean about the proxy, I think that I've nothing configurated there. Sorry, but networks are not my field.

I mean the host you use to send the FIX messages too. Based on your screenshot, it should be h60.p.ctrader.com. Can you confirm? Also I need the timestamps of the messages.

Best Regards,

Panagiotis 

Join us on Telegram


@PanagiotisCharalampous

swapd0
26 May 2021, 16:39

RE:

PanagiotisCharalampous said:

Hi swapd0,

Not sure what you mean about the proxy, I think that I've nothing configurated there. Sorry, but networks are not my field.

I mean the host you use to send the FIX messages too. Based on your screenshot, it should be h60.p.ctrader.com. Can you confirm? Also I need the timestamps of the messages.

Best Regards,

Panagiotis 

Join us on Telegram

Nope, h10, this is my connection query. For now, I'm using port 5201, no SSL just plain text.

boost::asio::ip::tcp::resolver::query query("h10.p.ctrader.com", "5201", boost::asio::ip::tcp::resolver::query::numeric_service);


@swapd0

PanagiotisCharalampous
26 May 2021, 16:49

Hi swapd0,

Why don't you use what is suggested by cTrader? h60.p.ctrader.com

Best Regards,

Panagiotis 

Join us on Telegram


@PanagiotisCharalampous

swapd0
26 May 2021, 16:50

I've changed the proxy to h60.p.ctrader.com and now I got this message.

8=FIX.4.4|9=101|35=5|34=1|49=CSERVER|50=QUOTE|52=20210526-13:49:11.661|56=live.icmarkets.1051433|58=RET_INVALID_DATA|10=245|


@swapd0

PanagiotisCharalampous
26 May 2021, 17:03

Hi swapd0,

Please provide the complete sequence of messages exchanged and the timestamps.

Best Regards,

Panagiotis 

Join us on Telegram


@PanagiotisCharalampous

swapd0
26 May 2021, 17:21

Not sure if you need more resolution with the timestamp but I'm coding in C++ using FIX API in C# as a reference, so everything is done from scratch and using boost library.

Send

[2021-May-26 14:18:18]8=FIX.4.4|9=122|35=A|49=live.icmarkets.1051433|56=CSERVER|57=QUOTE|34=1|52=20210526-14:18:18|98=0|108=30|141=Y|553=1051433|554=*****|10=040|

Received

[2021-May-26 14:18:18]8=FIX.4.4|9=101|35=5|34=1|49=CSERVER|50=QUOTE|52=20210526-14:18:18.608|56=live.icmarkets.1051433|58=RET_INVALID_DATA|10=250|


@swapd0

swapd0
26 May 2021, 18:06 ( Updated at: 26 May 2021, 18:08 )

I'm going to try this.

https://ctrader.com/forum/fix-api/23354

And it works!!!

Thanks PanagiotisCharalampous for your time


@swapd0