Topics
27 Nov 2017, 16:20
 2627
 5
Replies

enrico.pedersini
01 Dec 2017, 12:04

Hi Panagiotis,

ok, great. The Connect API Library on github doesn't have the SymbolID fields unser the class Symbols. Adden in my code and now it's working. Thank you.


@enrico.pedersini

enrico.pedersini
30 Nov 2017, 13:10

Is there a way to have by code the FIX Symbol ID shown in the picture above? I mean, if I call Connect_API.Accounts.Symbols.GetSymbols, i get the list of the symbols, but symbols class doesn't have a FIXSymbolID property. If I call by fix api the QuickFix.FIX44.SecurityListRequest, the response is always invalid MsgType. Is there a way to have a list of the symbols traded on the server with the Symbol FIx id? Or the only way is to copy them from the ctrader platform one by one? 


@enrico.pedersini

enrico.pedersini
28 Nov 2017, 15:44

RE: RE:

Panagiotis Charalampous said:

enrico.pedersini said:

Hi Panagiotis,
my first implementation was sending a ping request (filling the timestamp field with local ticks) with connect API and reading the ping response message. But I notice that the timestamp of the ping response is every time exactly the same i sent. Maybe i'm missing something...? I'll receck my code later this evening.

Thank you, regards.

Hi Enrico,

Please check and let us know. If this is the case, we shall investigate further.

Best Regards,

Panagiotis

Hi Panagiotis,
sorry for the delay but I made some deeper tests. Anyway... I use the following c# code (firs part for sending and second part for receving:
 

var msg = MsgFactory.CreatePingRequest(DateTime.Now.Ticks);
Console.WriteLine(String.Format("SendPingRequest() Message sent: {0}", OpenApiMessagesPresentation.ToString(msg)));
SendMessage(msg.ToByteArray());
[...]
case (int)ProtoOAPayloadType.OA_PING_RES:
                    var pingMsg = MsgFactory.GetPingResponse(rawData);
                    Console.WriteLine(String.Format("PingResponse() Message received: {0}", pingMsg.Timestamp));

The code produce the following output:

SendPingRequest() Message sent: ProtoMessage{PingRequest{timestamp:636474769871789838}}
PingResponse() Message received: 636474769871789838

The timestamp of the ping response seems to be always the same time stamp sent.. Am I doing something wrong?
regards.


@enrico.pedersini

enrico.pedersini
27 Nov 2017, 18:10

Hi Panagiotis,
my first implementation was sending a ping request (filling the timestamp field with local ticks) with connect API and reading the ping response message. But I notice that the timestamp of the ping response is every time exactly the same i sent. Maybe i'm missing something...? I'll receck my code later this evening.

Thank you, regards.


@enrico.pedersini