Request for position does not give a response
Request for position does not give a response
13 Oct 2020, 08:36
Hello,
I am trying to use the FIX API to execute a request for position. However, I am not getting a response at all. I found a post on the cTrader form on the issue /forum/fix-api/24399. My checksum and bodylength are correct. Can anyone offer me some insight into what is happening? Thank You
Example Request: 8=FIX.4.4|9=99|35=AN|49=ctrader.1234567|56=cServer|34=2|52=20201012-17:55:11.416|50=3308164|57=TRADE|710=24685315|10=044|
Replies
harrysmith1991
13 Oct 2020, 09:01
@PanagiotisCharalampous
My credentials are correct. I have executed an order successfully with the same credentials.
@harrysmith1991
PanagiotisCharalampous
13 Oct 2020, 09:12
Hi harrysmith1991,
Your SenderSubID seems wrong but you should get a response. Other than that, I do not see anything wrong with the message. Did you use our example application to compare your messages?
Best Regards,
Panagiotis
@PanagiotisCharalampous
harrysmith1991
13 Oct 2020, 17:13
@PanagiotisCharalampous
According to cTrader's example, SenderSubID can be any string.
Taken from cTrader FIX Engine, Rules of Engagement v2.16.1
8=FIX.4.4|9=100|35=AN|49=theBroker.12345|56=CSERVER|34=99|52=20170117-10:09:54|50=any_string|57=TRADE|710=876316401|10=103|
I do see in the cTrader application under the settings > FIX API. The SenderSubID can be either QUOTE or TRADE. I tried but the result was the same.
Another example of my request
8=FIX.4.4|9=99|35=AN|49=ctrader.1234567|56=cServer|34=2|52=20201013-13:49:53.315|50=1234567|57=TRADE|710=24685315|10=049|
@harrysmith1991
PanagiotisCharalampous
14 Oct 2020, 07:31
Hi harrysmith1991,
Did you use our example application to compare your messages?
Best Regards,
Panagiotis
@PanagiotisCharalampous
harrysmith1991
14 Oct 2020, 08:42
@PanagiotisCharalampous
I did. All the tags match. Is there anything else you can point me to?
Thank you.
@harrysmith1991
PanagiotisCharalampous
14 Oct 2020, 08:46
Hi harrysmith1991,
Do you get a response with the sample application? If yes, then the issue must lie somewhere in your application. If no, please send me your credentials at community@spotware.com to check further.
Best Regards,
Panagiotis
@PanagiotisCharalampous
harrysmith1991
16 Oct 2020, 00:10
@PanagiotisCharalampous
I got a response using the sample application. The issue seems to be the port number. In my application, the port used is 5202 to connect to the trade server. In the sample application, the port that is used is 5212. Using port 5202 I'm able to execute orders but I'm unable to get any reports such as a Position Report. On port 5212 everything works as expected.
Thank you for your assistance.
@harrysmith1991
... Deleted by UFO ...
harrysmith1991
31 Jan 2021, 07:57
RE: RE:
deepen.parmar02 said:
harrysmith1991 said:
Hello,
I am trying to use the FIX API to execute a request for position. However, I am not getting a response at all. I found a post on the cTrader form on the issue /forum/fix-api/24399. My checksum and bodylength are correct. Can anyone offer me some chatiw insight into what is happening? Thank YouExample Request: 8=FIX.4.4|9=99|35=AN|49=ctrader.1234567|56=cServer|34=2|52=20201012-17:55:11.416|50=3308164|57=TRADE|710=24685315|10=044|
This API is not working smoothly as before.
What changed?
@harrysmith1991
PanagiotisCharalampous
13 Oct 2020, 08:43
Hi harrysmith1991,
Please also confirm that your credentials are correct. I would suggest to use our FIX API sample to test and compare messages.
Best Regards,
Panagiotis
Join us on Telegram
@PanagiotisCharalampous