Please help with Market Data Request (MsgType(35)=V)

Created at 14 Oct 2016, 02:45
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!
MA

maxim_7

Joined 14.07.2013

Please help with Market Data Request (MsgType(35)=V)
14 Oct 2016, 02:45


Hi Support.

Need help to understand what is wrong in my request:

Req:
8=FIX.4.4|9=113|35=V|34=2|49=fxpro.9999999|50=QUOTE|52=20161013-23:43:09.761|56=CSERVER|262=1|263=1|264=1|146=1|55=1|267=2|269=0|10=112|
Resp:
8=FIX.4.4|9=148|35=3|34=2|49=CSERVER|52=20161013-23:43:08.564|56=fxpro.9999999|57=QUOTE|45=2|58=Incorrect NumInGroup count for repeating group|371=267|372=V|373=16|10=068|

 

Req:
8=FIX.4.4|9=119|35=V|34=2|49=fxpro.9999999|50=QUOTE|52=20161013-23:39:44.219|56=CSERVER|262=1|263=1|264=1|146=1|55=1|267=2|269=0|269=1|10=136|
Resp: - connection drop

Thanx


@maxim_7
Replies

david-connect-api
14 Oct 2016, 22:40

RE:

maxim_7 said:

Hi Support.

Need help to understand what is wrong in my request:

Req:
8=FIX.4.4|9=113|35=V|34=2|49=fxpro.9999999|50=QUOTE|52=20161013-23:43:09.761|56=CSERVER|262=1|263=1|264=1|146=1|55=1|267=2|269=0|10=112|
Resp:
8=FIX.4.4|9=148|35=3|34=2|49=CSERVER|52=20161013-23:43:08.564|56=fxpro.9999999|57=QUOTE|45=2|58=Incorrect NumInGroup count for repeating group|371=267|372=V|373=16|10=068|

 

Req:
8=FIX.4.4|9=119|35=V|34=2|49=fxpro.9999999|50=QUOTE|52=20161013-23:39:44.219|56=CSERVER|262=1|263=1|264=1|146=1|55=1|267=2|269=0|269=1|10=136|
Resp: - connection drop

Thanx

I had the same problem which I resolved adding tag 50=QUOTE to the header of the Logon message that starts the session for which you are requesting market data. Also check the ports you are using, since sessions for quoting and trading have different ports.


@david-connect-api

maxim_7
15 Oct 2016, 00:40

RE: RE:

david-connect-api said:

 

I had the same problem which I resolved adding tag 50=QUOTE to the header of the Logon message that starts the session for which you are requesting market data. Also check the ports you are using, since sessions for quoting and trading have different ports.

Thanx for attempt to help. But I already using tag 50=QUOTE to the header of the Logon message, and also tried both ports. On both ports the same result.


@maxim_7

david-connect-api
15 Oct 2016, 01:19

RE: RE: RE:

maxim_7 said:

david-connect-api said:

 

I had the same problem which I resolved adding tag 50=QUOTE to the header of the Logon message that starts the session for which you are requesting market data. Also check the ports you are using, since sessions for quoting and trading have different ports.

Thanx for attempt to help. But I already using tag 50=QUOTE to the header of the Logon message, and also tried both ports. On both ports the same result.

And adding tag 265=1 to MsgType(35)=V even though the ctrader's rules of engagement says it is not necessary? I am using quickfix/j and it is working for me, i can subscribe for data request (the server responds with MsgType(35)=W, not with MsgType(35)=X but it works). I can't think in anything else...


@david-connect-api

maxim_7
15 Oct 2016, 02:24

RE: RE: RE: RE:

david-connect-api said:

And adding tag 265=1 to MsgType(35)=V even though the ctrader's rules of engagement says it is not necessary? I am using quickfix/j and it is working for me, i can subscribe for data request (the server responds with MsgType(35)=W, not with MsgType(35)=X but it works). I can't think in anything else...

Today spotware added SSL transport support and I've tried second request with Real account and got response from server.

So believe issue exists only on Demo server.

It is good enough for me, Thanx for help.

M.


@maxim_7

#EOL
27 Dec 2016, 19:42

it would be very strange if Spotware has different implementation of FIX API on demo and live servers

regarding the reject message, you have 267(NoMDEntryTypes)=2 and only one record 269(MDEntryType). Scecify both MDEntryType: 269=0|269=1

8=FIX.4.4|9=113|35=V|34=2|49=fxpro.9999999|50=QUOTE|52=20161013-23:43:09.761|56=CSERVER|262=1|263=1|264=1|146=1|55=1|267=2|269=0|269=1|10=112|

Use FIX parser to make it prettier


@#EOL