RET_INVALID_DATA error

Created at 14 May 2024, 13:41
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!
IR

iranmanesh.s

Joined 14.05.2024

RET_INVALID_DATA error
14 May 2024, 13:41


Hi Everyone,

 

That is the first time that I am trying to get market data from fix API but I get the following error:

Command (ex: Help): LogonRequest
Sent:  8=FIX.4.4|9=130|35=A|49=live.pepperstone.xxxxxx|56=cServer|57=QUOTE|50=QUOTE|34=1|52=20240514-13:31:11|98=0|108=30|553=xxxxxx|554=xxxxxx|10=251|

Received:  8=FIX.4.4|9=112|35=5|34=1|49=cServer|50=QUOTE|52=20240514-13:31:12.107|56=live.pepperstone.xxxxxxx|57=QUOTE|58=RET_INVALID_DATA|10=228|

 

I have use the same Fix API info available on Ctrader

{

  "Host": "live-us-eqx-01.p.ctrader.com",

  "Port": 5201,

  "SSL": false,

  "Username": "xxxxx",

  "Password": "xxxxxx",

  "BeginString": "FIX.4.4",

  "SenderCompID": "live.pepperstone.xxxxxx",

  "SenderSubID": "QUOTE",

  "TargetCompID": "cServer",

  "TargetSubID": "QUOTE",

  "HeartBeat": "30"

}

Could you please assist me how can I fix it?

 

I also tried the MarketDataRequest  that send the following message but nothing is received:

Sent:  8=FIX.4.4|9=143|35=V|49=live.pepperstone.xxxx|56=cServer|57=QUOTE|50=QUOTE|34=1|52=20240514-13:38:18|262=123|263=1|264=0|265=1|267=1|269=0|146=1|55=AUD/USD|10=045|

Disconnected, reason:  [Failure instance: Traceback (failure with no frames): <class 'twisted.internet.error.ConnectionDone'>: Connection was closed cleanly.

 

 


@iranmanesh.s
Replies

PanagiotisCharalampous
15 May 2024, 05:38

Hi there,

There is a known issue with host names in cTrader Desktop. Try to get your host name from cTrader Web.

Best regards,

Panagiotis


@PanagiotisCharalampous

iranmanesh.s
15 May 2024, 07:05 ( Updated at: 16 May 2024, 05:31 )

RE: RET_INVALID_DATA error

PanagiotisCharalampous said: 

Hi there,

There is a known issue with host names in cTrader Desktop. Try to get your host name from cTrader Web.

Best regards,

Panagiotis

I did try but still get the same error :-(

 


@iranmanesh.s

PanagiotisCharalampous
16 May 2024, 05:37

RE: RE: RET_INVALID_DATA error

iranmanesh.s said: 

PanagiotisCharalampous said: 

Hi there,

There is a known issue with host names in cTrader Desktop. Try to get your host name from cTrader Web.

Best regards,

Panagiotis

I did try but still get the same error :-(

 

Are username and password correct? Did you try using the .Net example? Do you get the same issue?


@PanagiotisCharalampous