cant connect to the fix api 'trade connection'

Created at 26 Jun 2020, 21:14
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!
GA

cant connect to the fix api 'trade connection'
26 Jun 2020, 21:14


im trying to connect with the creds below but they are not working can someone help?

 

Host name: h24.p.ctrader.com
(Current IP address 185.198.189.8 can be changed without notice)
Port: 5212 (SSL), 5202 (Plain text)
Password: ***** (a/c 1044783 password)
SenderCompID: icmarkets.1044783
TargetCompID: cServer
SenderSubID: TRADE

 

What I have noticed earlier is that when I attempted to connect to the Trading session, the MD session refused to connect too (as if there was some conflict). But, as soon as I stopped trying to connect to the Trading session, the MD worked fine!


@garethbowles@yahoo.co.uk
Replies

PanagiotisCharalampous
29 Jun 2020, 08:46

Hi there,

Make sure you are using the correct credentials. You can also use our FIX API example to verify that you are sending the correct messages.

Best Regards,

Panagiotis 

Join us on Telegram

 


@PanagiotisCharalampous

garethbowles@yahoo.co.uk
29 Jun 2020, 16:16

thanks for your reply- the credentials are correct and market data (price) connects ok (just the trade session does not) and the FIX sample document does not help either, can I ask you to send an anonymous sample MarketDataRequest FIX message that works fine. I can then compare tag for tag.


@garethbowles@yahoo.co.uk

garethbowles@yahoo.co.uk
29 Jun 2020, 16:17

RE:

PanagiotisCharalampous said:

Hi there,

Make sure you are using the correct credentials. You can also use our FIX API example to verify that you are sending the correct messages.

Best Regards,

Panagiotis 

Join us on Telegram

 

thanks for your reply- the credentials are correct and market data (price) connects ok (just the trade session does not) and the FIX sample document does not help either, can I ask you to send an anonymous sample MarketDataRequest FIX message that works fine. I can then compare tag for tag.


@garethbowles@yahoo.co.uk

PanagiotisCharalampous
29 Jun 2020, 16:18

Hi there,

You can use the FIX API example to get the expected messages. You can also use it with your credentials to check if you can login or not.

Best Regards,

Panagiotis 

Join us on Telegram


@PanagiotisCharalampous

garethbowles@yahoo.co.uk
30 Jun 2020, 09:06

Panagiotis,

Can you please confirm the credential in the original message are correct and pointing to the correct live endpoint on your side. And please can  you send the latest FIX API document. We can connect to the price data session ok, its just the trade session that we are having issues with. The FIX api sample document/ page does not help we have been through all of this.

On the market data connection:

the below is a copy/paste from the IC Market API document (cTraderFixApi_v2.16.1) - that I have implemented against.
This is what it says:

6.3. Market Data Request
Request
8=FIX.4.4|9=131|35=V|49=theBroker.12345|56=CSERVER|34=3|52=20170117-
10:26:54|50=QUOTE|262=876316403|263=1|264=1|265=1|146=1|55=1|267=2|269=0|269=1|10=094|

Response
8=FIX.4.4|9=134|35=W|34=2|49=CSERVER|50=QUOTE|52=20170117-
10:26:54.630|56=theBroker.12345|57=any_string|55=1|268=2|269=0|270=1.06625|269=1|270=1
.0663|10=11

You see in the response, the quantities available at Top of the Book are missing - exactly as I see it happening right now. May be it is like that by design. We only need to know what default quantities to expect? 
FYI, the quantity available is delivered in TAG 271 - which as you can see from their example above is missing. Price is in TAG-270.


@garethbowles@yahoo.co.uk

garethbowles@yahoo.co.uk
30 Jun 2020, 09:15

RE:

PanagiotisCharalampous said:

Hi there,

You can use the FIX API example to get the expected messages. You can also use it with your credentials to check if you can login or not.

Best Regards,

Panagiotis 

Join us on Telegram

Panagiotis,

Can you please confirm the credential in the original message are correct and pointing to the correct live endpoint on your side. And please can  you send the latest FIX API document. We can connect to the price data session ok, its just the trade session that we are having issues with. The FIX api sample document/ page does not help we have been through all of this.

On the market data connection:

the below is a copy/paste from the IC Market API document (cTraderFixApi_v2.16.1) - that I have implemented against.
This is what it says:

6.3. Market Data Request
Request
8=FIX.4.4|9=131|35=V|49=theBroker.12345|56=CSERVER|34=3|52=20170117-
10:26:54|50=QUOTE|262=876316403|263=1|264=1|265=1|146=1|55=1|267=2|269=0|269=1|10=094|

Response
8=FIX.4.4|9=134|35=W|34=2|49=CSERVER|50=QUOTE|52=20170117-
10:26:54.630|56=theBroker.12345|57=any_string|55=1|268=2|269=0|270=1.06625|269=1|270=1
.0663|10=11

You see in the response, the quantities available at Top of the Book are missing - exactly as I see it happening right now. May be it is like that by design. We only need to know what default quantities to expect? 
FYI, the quantity available is delivered in TAG 271 - which as you can see from their example above is missing. Price is in TAG-270.


@garethbowles@yahoo.co.uk

PanagiotisCharalampous
30 Jun 2020, 10:10 ( Updated at: 21 Dec 2023, 09:22 )

Hi,

1) I cannot confirm your credentials. It is you that has to do this e.g. I do not know your password and if you are using the correct one.

2)  The FIX Specification found in the help site is the latest.

3) I have recommended twice to use our FIX API example but I cannot understand if you do. If you use our example together with correct credentials, you should not have a problem signing in and seeing the messages exchanged.

4) If you use our FIX API example to send a Depth Market Data Request you will see that both tag 270 and 271 are returned.

Best Regards,

Panagiotis 

Join us on Telegram


@PanagiotisCharalampous

garethbowles@yahoo.co.uk
30 Jun 2020, 15:05

RE:

Thanks for your reply,

There are two issues here - the one being we can't login to the TRADE session - the Price session logs us in ok but then we get kicked or the connection is disabled when we try (unsuccessfully) to login to the TRADE session - I asked if its possible for you to check the credentials, port number etc (not the Username and Password I do not need you to verify this) this is to make sure these connection details are correct. It is copied directly from Ctrader IC markets and we have connected before which is why I asked if there is an update to the FIX specifications.

On the second issue relating to trade size, 

“If you use our FIX API example to send a Depth Market Data Request you will see that both tag 270 and 271 are returned”

Yes, we can see and understand that, but we are subscribing to Top Of The Book only (level 1 – not interested in depth). Your API states that we could. Why are you not sending bid/offer sizes (TAG 271) for that?

If someone only wants to see Top Of The Book quotes, does he have to subscribe to multiple levels/depths to get the quotes sizes and then work out the level 1 sizes from that?

Many thanks

 

 


@garethbowles@yahoo.co.uk

PanagiotisCharalampous
01 Jul 2020, 09:14

Hi,

1) We could not reproduce any issues signing in to trade sessions.  If still have trouble logging in to the TRADE session please send me the credentials you use together with your password at community@spotware.com and I will investigate further.

2) If you subscribe to top of the book values (264=1) you will not get sizes. Sizes are only returned for depth subscriptions. Regarding 

"Your API states that we could."

I am not sure where is this stated. Our example messages show clearly that tag 271 is not returned for spot subscription. Can you please point it to us so that we can correct it?

Best Regards,

Panagiotis 

Join us on Telegram


@PanagiotisCharalampous

PanagiotisCharalampous
01 Jul 2020, 14:05

Hi Gareth,

I cannot reach you over email, it seems there is an issue with your email address.

 I had no issues signing in using the example application and your credentials. 

 

Here are the messages

8=FIX.4.4 9=120 35=A 49=icmarkets.1044783 56=CSERVER 57=TRADE 50=TRADE 34=1 52=20200701-10:59:19 98=0 108=30 553=1044783 554=xxx 10=093

8=FIX.4.4 9=97 35=A 34=1 49=CSERVER 50=TRADE 52=20200701-10:59:19.580 56=icmarkets.1044783 57=TRADE 98=0 108=30 10=171

Best Regards,

Panagiotis 

Join us on Telegram


@PanagiotisCharalampous