Can't route request in FIX API
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
Replies
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
@PanagiotisCharalampous
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
@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
@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
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
@PanagiotisCharalampous
PanagiotisCharalampous
26 May 2021, 17:03
Hi swapd0,
Please provide the complete sequence of messages exchanged and the timestamps.
Best Regards,
Panagiotis
@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
swapd0
26 May 2021, 13:33
Hi, I'm having the same error, did you find the solution?
@swapd0