Replies

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 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|

This API is not working smoothly as before.

What changed?


@harrysmith1991

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

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

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

harrysmith1991
13 Oct 2020, 09:01

@PanagiotisCharalampous

My credentials are correct. I have executed an order successfully with the same credentials. 


@harrysmith1991