Persistent connectivity issues: unpredictable tcp disconnects, "SendingTime accuracy problem"]

Created at 19 May 2024, 22:36
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!
CH

chekh

Joined 07.05.2024

Persistent connectivity issues: unpredictable tcp disconnects, "SendingTime accuracy problem"]
19 May 2024, 22:36


Hi,

Persistent connectivity issues: unpredictable tcp disconnects, “SendingTime accuracy problem”.

I have faced with persistent connectivity issues with the cTrader server while using our FIX protocol-based Python application. The application successfully establishes a connection and sends Heartbeats to confirm activity, as well as TestRequests to verify server responsiveness, all in accordance with the FIX protocol.

However, the server exhibits erratic behavior and fails to fully adhere to the FIX protocol (experiencing unexpected disconnects), and also appears to have clock synchronization issues.

Identified Issues:

  1. Unexpected TCP-level disconnects without client notification or FIX Logoff messages
    • The server abruptly terminates connections without informing the client, leading to application downtime.
  2. Internal clock discrepancies causing connection problems:
    • The server's internal clock appears to be out of sync, resulting in connection failures due to SendingTime accuracy problems.

Log Analysis:

The provided log excerpt demonstrates a stable exchange of FIX messages between the client and server from 2024-05-18 10:44:03.036 to 2024-05-18 10:44:23.314.

At 2024-05-18 10:44:23.314, the client detects a TCP-level connection loss initiated by the server.

The application attempts to reconnect and successfully re-establishes the TCP connection. It sends a Logon message, but receives a FIX rejection with the reason: 58=Invalid Logon message: SendingTime accuracy problem, field=52.

After 21 connection attempts, the client manages to connect. However, after an unspecified period, the issue recurs (server-side disconnect and “SendingTime accuracy” problem preventing connection).

To address the SendingTime accuracy problem, we integrated code into the client application to synchronize with public NTP servers (pool.ntp.org, time.google.com, time.windows.com). This ensures that the message sending time differs from the NTP service time by no more than a few milliseconds.

In contrast, the cTrader server's response times exhibit significant discrepancies.

Time Comparison:

Before the disconnect event, both parties' timestamps closely align:

2024-05-18 10:44:03.036 | DEBUG  | SEND >>>, MsgType: HEARTBEAT, 52=20240518-10:44:03.094
2024-05-18 10:44:03.085 | DEBUG  | RECV <<<, MsgType: HEARTBEAT, 52=20240518-10:44:08.887
2024-05-18 10:44:13.155 | DEBUG  | SEND >>>, MsgType: HEARTBEAT, 52=20240518-10:44:13.213
2024-05-18 10:44:13.206 | DEBUG  | RECV <<<, MsgType: HEARTBEAT, 52=20240518-10:44:19.007
2024-05-18 10:44:23.291 | DEBUG  | SEND >>>, MsgType: HEARTBEAT, 52=20240518-10:44:23.349


Following the server-initiated disconnect, the server's timestamp jumps forward by over 5 minutes:

2024-05-18 10:44:25.978 | DEBUG  | SEND >>>, MsgType: LOGON, 52=20240518-10:44:26.036
2024-05-18 10:44:26.029 | DEBUG  | RECV <<<, MsgType: LOGOUT, 52=20240518-10:50:02.154.  ← 10:44:26 log time and 10:50:02 server sending time!!!
 

2024-05-18 10:44:26.783 | DEBUG    | SEND >>>, MsgType: LOGON, 52=20240518-10:44:26.841
2024-05-18 10:44:26.835 | DEBUG    | RECV <<<, MsgType: LOGOUT, 52=20240518-10:50:02.960 ← 10:44:26 log time and 10:50:02 server sending time!!!

2024-05-18 10:44:27.453 | DEBUG    | SEND >>>, MsgType: LOGON, 52=20240518-10:44:27.511
2024-05-18 10:44:27.507 | DEBUG    | RECV <<<, MsgType: LOGOUT, |52=20240518-10:50:03.632 ← 10:44:27 log time and 10:50:03 server sending time!!!

This pattern repeats, with the server's clock drifting further ahead until the connection is finally established after the 21st attempt, presumably because the server's clock "catches up."

2024-05-18 10:50:02.355 | DEBUG    | SEND >>>, MsgType: LOGON, 52=20240518-10:50:02.413
2024-05-18 10:50:02.456 | DEBUG    | RECV <<<, MsgType: LOGON, 52=20240518-10:50:08.709

2024-05-18 10:50:12.491 | DEBUG    | SEND >>>, MsgType: HEARTBEAT, 52=20240518-10:50:12.549
2024-05-18 10:50:12.549 | DEBUG    | RECV <<<, MsgType: HEARTBEAT, 52=20240518-10:50:18.800
2024-05-18 10:50:22.614 | DEBUG    | SEND >>>, MsgType: HEARTBEAT, 52=20240518-10:50:22.672
2024-05-18 10:50:22.664 | DEBUG    | RECV <<<, MsgType: HEARTBEAT, 52=20240518-10:50:28.917

 

The situation is quite perplexing and there seems to be no clear solution.

The FIX protocol does not contain clock synchronization procedure, and the server's erratic behavior makes it difficult to determine the root cause the time accuracy problem.

Maintaining a stable connection for order placement, status updates, and uninterrupted market data reception appears challenging.

Can someone shed light on the underlying issue and offer potential solutions?

 

More detailed log:

2024-05-18 10:44:03.036 | DEBUG    | SEND >>>, MsgType: HEARTBEAT, Seq: 4, 8=FIX.4.4|9=89|35=0|49=demo.b2broker.5052391|56=cServer|50=TRADE|57=TRADE|34=4|52=20240518-10:44:03.094|10=105|
2024-05-18 10:44:03.085 | DEBUG    | RECV <<<, MsgType: HEARTBEAT, Seq: 4, 8=FIX.4.4|9=89|35=0|34=4|49=cServer|50=TRADE|52=20240518-10:44:08.887|56=demo.b2broker.5052391|57=TRADE|10=120|
2024-05-18 10:44:13.155 | DEBUG    | SEND >>>, MsgType: HEARTBEAT, Seq: 5, 8=FIX.4.4|9=89|35=0|49=demo.b2broker.5052391|56=cServer|50=TRADE|57=TRADE|34=5|52=20240518-10:44:13.213|10=100|
2024-05-18 10:44:13.206 | DEBUG    | RECV <<<, MsgType: HEARTBEAT, Seq: 5, 8=FIX.4.4|9=89|35=0|34=5|49=cServer|50=TRADE|52=20240518-10:44:19.007|56=demo.b2broker.5052391|57=TRADE|10=107|
2024-05-18 10:44:23.291 | DEBUG    | SEND >>>, MsgType: HEARTBEAT, Seq: 6, 8=FIX.4.4|9=89|35=0|49=demo.b2broker.5052391|56=cServer|50=TRADE|57=TRADE|34=6|52=20240518-10:44:23.349|10=112|
2024-05-18 10:44:23.314 | ERROR    | Error receiving message to demo-uk-eqx-01.p.ctrader.com:5202: Connection closed by peer

2024-05-18 10:44:25.420 | WARNING  | Broken network connection. Reconnecting...
2024-05-18 10:44:25.977 | INFO     | Connected to server demo-uk-eqx-01.p.ctrader.com:5202
2024-05-18 10:44:25.978 | DEBUG    | SEND >>>, MsgType: LOGON, Seq: 1, 8=FIX.4.4|9=139|35=A|49=demo.b2broker.5052391|56=cServer|50=TRADE|57=TRADE|34=1|52=20240518-10:44:26.036|98=0|108=10|553=5052391|554=***|141=Y|10=024|
2024-05-18 10:44:26.029 | DEBUG    | RECV <<<, MsgType: LOGOUT, Seq: 1, 8=FIX.4.4|9=154|35=5|34=1|49=cServer|50=TRADE|52=20240518-10:50:02.154|56=demo.b2broker.5052391|57=TRADE|58=Invalid Logon message: SendingTime accuracy problem, field=52|10=068|
2024-05-18 10:44:26.030 | ERROR    | Error receiving message to demo-uk-eqx-01.p.ctrader.com:5202: Connection closed by peer

2024-05-18 10:44:26.080 | WARNING  | Broken network connection. Reconnecting...
2024-05-18 10:44:26.782 | INFO     | Connected to server demo-uk-eqx-01.p.ctrader.com:5202
2024-05-18 10:44:26.783 | DEBUG    | SEND >>>, MsgType: LOGON, Seq: 1, 8=FIX.4.4|9=139|35=A|49=demo.b2broker.5052391|56=cServer|50=TRADE|57=TRADE|34=1|52=20240518-10:44:26.841|98=0|108=10|553=5052391|554=***|141=Y|10=028|
2024-05-18 10:44:26.835 | DEBUG    | RECV <<<, MsgType: LOGOUT, Seq: 1, 8=FIX.4.4|9=154|35=5|34=1|49=cServer|50=TRADE|52=20240518-10:50:02.960|56=demo.b2broker.5052391|57=TRADE|58=Invalid Logon message: SendingTime accuracy problem, field=52|10=073|
2024-05-18 10:44:26.835 | ERROR    | Error receiving message to demo-uk-eqx-01.p.ctrader.com:5202: Connection closed by peer

2024-05-18 10:44:26.987 | WARNING  | Broken network connection. Reconnecting...
2024-05-18 10:44:27.453 | INFO     | Connected to server demo-uk-eqx-01.p.ctrader.com:5202
2024-05-18 10:44:27.453 | DEBUG    | SEND >>>, MsgType: LOGON, Seq: 1, 8=FIX.4.4|9=139|35=A|49=demo.b2broker.5052391|56=cServer|50=TRADE|57=TRADE|34=1|52=20240518-10:44:27.511|98=0|108=10|553=5052391|554=***|141=Y|10=023|
2024-05-18 10:44:27.507 | DEBUG    | RECV <<<, MsgType: LOGOUT, Seq: 1, 8=FIX.4.4|9=154|35=5|34=1|49=cServer|50=TRADE|52=20240518-10:50:03.632|56=demo.b2broker.5052391|57=TRADE|58=Invalid Logon message: SendingTime accuracy problem, field=52|10=070|
2024-05-18 10:44:27.507 | ERROR    | Error receiving message to demo-uk-eqx-01.p.ctrader.com:5202: Connection closed by peer

2024-05-18 10:44:27.657 | WARNING  | Broken network connection. Reconnecting...
2024-05-18 10:44:27.962 | INFO     | Connected to server demo-uk-eqx-01.p.ctrader.com:5202
2024-05-18 10:44:27.963 | DEBUG    | SEND >>>, MsgType: LOGON, Seq: 1, 8=FIX.4.4|9=139|35=A|49=demo.b2broker.5052391|56=cServer|50=TRADE|57=TRADE|34=1|52=20240518-10:44:28.021|98=0|108=10|553=5052391|554=***|141=Y|10=020|
2024-05-18 10:44:28.015 | DEBUG    | RECV <<<, MsgType: LOGOUT, Seq: 1, 8=FIX.4.4|9=154|35=5|34=1|49=cServer|50=TRADE|52=20240518-10:50:04.141|56=demo.b2broker.5052391|57=TRADE|58=Invalid Logon message: SendingTime accuracy problem, field=52|10=066|
2024-05-18 10:44:28.016 | ERROR    | Error receiving message to demo-uk-eqx-01.p.ctrader.com:5202: Connection closed by peer

2024-05-18 10:44:28.165 | WARNING  | Broken network connection. Reconnecting...
2024-05-18 10:44:28.350 | INFO     | Connected to server demo-uk-eqx-01.p.ctrader.com:5202
2024-05-18 10:44:28.351 | DEBUG    | SEND >>>, MsgType: LOGON, Seq: 1, 8=FIX.4.4|9=139|35=A|49=demo.b2broker.5052391|56=cServer|50=TRADE|57=TRADE|34=1|52=20240518-10:44:28.409|98=0|108=10|553=5052391|554=***|141=Y|10=030|
2024-05-18 10:44:28.401 | DEBUG    | RECV <<<, MsgType: LOGOUT, Seq: 1, 8=FIX.4.4|9=154|35=5|34=1|49=cServer|50=TRADE|52=20240518-10:50:04.527|56=demo.b2broker.5052391|57=TRADE|58=Invalid Logon message: SendingTime accuracy problem, field=52|10=074|
2024-05-18 10:44:28.402 | ERROR    | Error receiving message to demo-uk-eqx-01.p.ctrader.com:5202: Connection closed by peer

2024-05-18 10:44:28.555 | WARNING  | Broken network connection. Reconnecting...
2024-05-18 10:44:28.584 | INFO     | Connected to server demo-uk-eqx-01.p.ctrader.com:5202
2024-05-18 10:44:28.585 | DEBUG    | SEND >>>, MsgType: LOGON, Seq: 1, 8=FIX.4.4|9=139|35=A|49=demo.b2broker.5052391|56=cServer|50=TRADE|57=TRADE|34=1|52=20240518-10:44:28.643|98=0|108=10|553=5052391|554=***|141=Y|10=030|
2024-05-18 10:44:28.638 | DEBUG    | RECV <<<, MsgType: LOGOUT, Seq: 1, 8=FIX.4.4|9=154|35=5|34=1|49=cServer|50=TRADE|52=20240518-10:50:04.764|56=demo.b2broker.5052391|57=TRADE|58=Invalid Logon message: SendingTime accuracy problem, field=52|10=077|
2024-05-18 10:44:28.638 | ERROR    | Error receiving message to demo-uk-eqx-01.p.ctrader.com:5202: Connection closed by peer

2024-05-18 10:44:28.789 | WARNING  | Broken network connection. Reconnecting...
2024-05-18 10:44:28.856 | INFO     | Connected to server demo-uk-eqx-01.p.ctrader.com:5202
2024-05-18 10:44:28.857 | DEBUG    | SEND >>>, MsgType: LOGON, Seq: 1, 8=FIX.4.4|9=139|35=A|49=demo.b2broker.5052391|56=cServer|50=TRADE|57=TRADE|34=1|52=20240518-10:44:28.915|98=0|108=10|553=5052391|554=***|141=Y|10=032|
2024-05-18 10:44:28.909 | DEBUG    | RECV <<<, MsgType: LOGOUT, Seq: 1, 8=FIX.4.4|9=154|35=5|34=1|49=cServer|50=TRADE|52=20240518-10:50:05.033|56=demo.b2broker.5052391|57=TRADE|58=Invalid Logon message: SendingTime accuracy problem, field=52|10=067|
2024-05-18 10:44:28.911 | ERROR    | Error receiving message to demo-uk-eqx-01.p.ctrader.com:5202: Connection closed by peer

2024-05-18 10:44:29.061 | WARNING  | Broken network connection. Reconnecting...
2024-05-18 10:44:29.092 | INFO     | Connected to server demo-uk-eqx-01.p.ctrader.com:5202
2024-05-18 10:44:29.092 | DEBUG    | SEND >>>, MsgType: LOGON, Seq: 1, 8=FIX.4.4|9=139|35=A|49=demo.b2broker.5052391|56=cServer|50=TRADE|57=TRADE|34=1|52=20240518-10:44:29.150|98=0|108=10|553=5052391|554=***|141=Y|10=024|
2024-05-18 10:44:29.145 | DEBUG    | RECV <<<, MsgType: LOGOUT, Seq: 1, 8=FIX.4.4|9=154|35=5|34=1|49=cServer|50=TRADE|52=20240518-10:50:05.269|56=demo.b2broker.5052391|57=TRADE|58=Invalid Logon message: SendingTime accuracy problem, field=52|10=078|
2024-05-18 10:44:29.147 | ERROR    | Error receiving message to demo-uk-eqx-01.p.ctrader.com:5202: Connection closed by peer

2024-05-18 10:44:29.296 | WARNING  | Broken network connection. Reconnecting...
2024-05-18 10:44:29.365 | INFO     | Connected to server demo-uk-eqx-01.p.ctrader.com:5202
2024-05-18 10:44:29.366 | DEBUG    | SEND >>>, MsgType: LOGON, Seq: 1, 8=FIX.4.4|9=139|35=A|49=demo.b2broker.5052391|56=cServer|50=TRADE|57=TRADE|34=1|52=20240518-10:44:29.424|98=0|108=10|553=5052391|554=***|141=Y|10=028|
2024-05-18 10:44:29.417 | DEBUG    | RECV <<<, MsgType: LOGOUT, Seq: 1, 8=FIX.4.4|9=154|35=5|34=1|49=cServer|50=TRADE|52=20240518-10:50:05.543|56=demo.b2broker.5052391|57=TRADE|58=Invalid Logon message: SendingTime accuracy problem, field=52|10=073|
2024-05-18 10:44:29.418 | ERROR    | Error receiving message to demo-uk-eqx-01.p.ctrader.com:5202: Connection closed by peer

2024-05-18 10:44:29.571 | WARNING  | Broken network connection. Reconnecting...
2024-05-18 10:44:29.600 | INFO     | Connected to server demo-uk-eqx-01.p.ctrader.com:5202
2024-05-18 10:44:29.601 | DEBUG    | SEND >>>, MsgType: LOGON, Seq: 1, 8=FIX.4.4|9=139|35=A|49=demo.b2broker.5052391|56=cServer|50=TRADE|57=TRADE|34=1|52=20240518-10:44:29.659|98=0|108=10|553=5052391|554=***|141=Y|10=038|
2024-05-18 10:44:29.658 | DEBUG    | RECV <<<, MsgType: LOGOUT, Seq: 1, 8=FIX.4.4|9=154|35=5|34=1|49=cServer|50=TRADE|52=20240518-10:50:05.783|56=demo.b2broker.5052391|57=TRADE|58=Invalid Logon message: SendingTime accuracy problem, field=52|10=079|
2024-05-18 10:44:29.659 | ERROR    | Error receiving message to demo-uk-eqx-01.p.ctrader.com:5202: Connection closed by peer

2024-05-18 10:44:29.804 | WARNING  | Broken network connection. Reconnecting...
2024-05-18 10:44:29.834 | INFO     | Connected to server demo-uk-eqx-01.p.ctrader.com:5202
2024-05-18 10:44:29.835 | DEBUG    | SEND >>>, MsgType: LOGON, Seq: 1, 8=FIX.4.4|9=139|35=A|49=demo.b2broker.5052391|56=cServer|50=TRADE|57=TRADE|34=1|52=20240518-10:44:29.893|98=0|108=10|553=5052391|554=***|141=Y|10=038|
2024-05-18 10:44:29.885 | DEBUG    | RECV <<<, MsgType: LOGOUT, Seq: 1, 8=FIX.4.4|9=154|35=5|34=1|49=cServer|50=TRADE|52=20240518-10:50:06.011|56=demo.b2broker.5052391|57=TRADE|58=Invalid Logon message: SendingTime accuracy problem, field=52|10=064|
2024-05-18 10:44:29.885 | ERROR    | Error receiving message to demo-uk-eqx-01.p.ctrader.com:5202: Connection closed by peer

2024-05-18 10:44:30.039 | WARNING  | Broken network connection. Reconnecting...
2024-05-18 10:44:30.068 | INFO     | Connected to server demo-uk-eqx-01.p.ctrader.com:5202
2024-05-18 10:44:30.069 | DEBUG    | SEND >>>, MsgType: LOGON, Seq: 1, 8=FIX.4.4|9=139|35=A|49=demo.b2broker.5052391|56=cServer|50=TRADE|57=TRADE|34=1|52=20240518-10:44:30.127|98=0|108=10|553=5052391|554=***|141=Y|10=020|
2024-05-18 10:44:30.117 | DEBUG    | RECV <<<, MsgType: LOGOUT, Seq: 1, 8=FIX.4.4|9=154|35=5|34=1|49=cServer|50=TRADE|52=20240518-10:50:06.244|56=demo.b2broker.5052391|57=TRADE|58=Invalid Logon message: SendingTime accuracy problem, field=52|10=072|
2024-05-18 10:44:30.117 | ERROR    | Error receiving message to demo-uk-eqx-01.p.ctrader.com:5202: Connection closed by peer

2024-05-18 10:44:30.274 | WARNING  | Broken network connection. Reconnecting...
2024-05-18 10:44:30.303 | INFO     | Connected to server demo-uk-eqx-01.p.ctrader.com:5202
2024-05-18 10:44:30.304 | DEBUG    | SEND >>>, MsgType: LOGON, Seq: 1, 8=FIX.4.4|9=139|35=A|49=demo.b2broker.5052391|56=cServer|50=TRADE|57=TRADE|34=1|52=20240518-10:44:30.362|98=0|108=10|553=5052391|554=***|141=Y|10=021|
2024-05-18 10:44:30.356 | DEBUG    | RECV <<<, MsgType: LOGOUT, Seq: 1, 8=FIX.4.4|9=154|35=5|34=1|49=cServer|50=TRADE|52=20240518-10:50:06.482|56=demo.b2broker.5052391|57=TRADE|58=Invalid Logon message: SendingTime accuracy problem, field=52|10=076|
2024-05-18 10:44:30.357 | ERROR    | Error receiving message to demo-uk-eqx-01.p.ctrader.com:5202: Connection closed by peer

2024-05-18 10:44:30.509 | WARNING  | Broken network connection. Reconnecting...
2024-05-18 10:44:30.572 | INFO     | Connected to server demo-uk-eqx-01.p.ctrader.com:5202
2024-05-18 10:44:30.573 | DEBUG    | SEND >>>, MsgType: LOGON, Seq: 1, 8=FIX.4.4|9=139|35=A|49=demo.b2broker.5052391|56=cServer|50=TRADE|57=TRADE|34=1|52=20240518-10:44:30.631|98=0|108=10|553=5052391|554=***|141=Y|10=020|
2024-05-18 10:44:30.625 | DEBUG    | RECV <<<, MsgType: LOGOUT, Seq: 1, 8=FIX.4.4|9=154|35=5|34=1|49=cServer|50=TRADE|52=20240518-10:50:06.751|56=demo.b2broker.5052391|57=TRADE|58=Invalid Logon message: SendingTime accuracy problem, field=52|10=075|
2024-05-18 10:44:30.626 | ERROR    | Error receiving message to demo-uk-eqx-01.p.ctrader.com:5202: Connection closed by peer

2024-05-18 10:44:30.776 | WARNING  | Broken network connection. Reconnecting...
2024-05-18 10:44:30.806 | INFO     | Connected to server demo-uk-eqx-01.p.ctrader.com:5202
2024-05-18 10:44:30.807 | DEBUG    | SEND >>>, MsgType: LOGON, Seq: 1, 8=FIX.4.4|9=139|35=A|49=demo.b2broker.5052391|56=cServer|50=TRADE|57=TRADE|34=1|52=20240518-10:44:30.865|98=0|108=10|553=5052391|554=***|141=Y|10=029|
2024-05-18 10:44:30.863 | DEBUG    | RECV <<<, MsgType: LOGOUT, Seq: 1, 8=FIX.4.4|9=154|35=5|34=1|49=cServer|50=TRADE|52=20240518-10:50:06.987|56=demo.b2broker.5052391|57=TRADE|58=Invalid Logon message: SendingTime accuracy problem, field=52|10=086|
2024-05-18 10:44:30.865 | ERROR    | Error receiving message to demo-uk-eqx-01.p.ctrader.com:5202: Connection closed by peer

2024-05-18 10:44:31.011 | WARNING  | Broken network connection. Reconnecting...
2024-05-18 10:44:31.039 | INFO     | Connected to server demo-uk-eqx-01.p.ctrader.com:5202
2024-05-18 10:44:31.040 | DEBUG    | SEND >>>, MsgType: LOGON, Seq: 1, 8=FIX.4.4|9=139|35=A|49=demo.b2broker.5052391|56=cServer|50=TRADE|57=TRADE|34=1|52=20240518-10:44:31.098|98=0|108=10|553=5052391|554=***|141=Y|10=028|
2024-05-18 10:44:31.099 | DEBUG    | RECV <<<, MsgType: LOGOUT, Seq: 1, 8=FIX.4.4|9=154|35=5|34=1|49=cServer|50=TRADE|52=20240518-10:50:07.222|56=demo.b2broker.5052391|57=TRADE|58=Invalid Logon message: SendingTime accuracy problem, field=52|10=069|
2024-05-18 10:44:31.101 | ERROR    | Error receiving message to demo-uk-eqx-01.p.ctrader.com:5202: Connection closed by peer

2024-05-18 10:44:31.243 | WARNING  | Broken network connection. Reconnecting...
2024-05-18 10:44:31.272 | INFO     | Connected to server demo-uk-eqx-01.p.ctrader.com:5202
2024-05-18 10:44:31.272 | DEBUG    | SEND >>>, MsgType: LOGON, Seq: 1, 8=FIX.4.4|9=139|35=A|49=demo.b2broker.5052391|56=cServer|50=TRADE|57=TRADE|34=1|52=20240518-10:44:31.331|98=0|108=10|553=5052391|554=***|141=Y|10=018|
2024-05-18 10:44:31.328 | DEBUG    | RECV <<<, MsgType: LOGOUT, Seq: 1, 8=FIX.4.4|9=154|35=5|34=1|49=cServer|50=TRADE|52=20240518-10:50:07.452|56=demo.b2broker.5052391|57=TRADE|58=Invalid Logon message: SendingTime accuracy problem, field=52|10=074|
2024-05-18 10:44:31.330 | ERROR    | Error receiving message to demo-uk-eqx-01.p.ctrader.com:5202: Connection closed by peer

2024-05-18 10:44:31.475 | WARNING  | Broken network connection. Reconnecting...
2024-05-18 10:44:31.539 | INFO     | Connected to server demo-uk-eqx-01.p.ctrader.com:5202
2024-05-18 10:44:31.540 | DEBUG    | SEND >>>, MsgType: LOGON, Seq: 1, 8=FIX.4.4|9=139|35=A|49=demo.b2broker.5052391|56=cServer|50=TRADE|57=TRADE|34=1|52=20240518-10:44:31.598|98=0|108=10|553=5052391|554=***|141=Y|10=033|
2024-05-18 10:44:31.595 | DEBUG    | RECV <<<, MsgType: LOGOUT, Seq: 1, 8=FIX.4.4|9=154|35=5|34=1|49=cServer|50=TRADE|52=20240518-10:50:07.721|56=demo.b2broker.5052391|57=TRADE|58=Invalid Logon message: SendingTime accuracy problem, field=52|10=073|
2024-05-18 10:44:31.595 | ERROR    | Error receiving message to demo-uk-eqx-01.p.ctrader.com:5202: Connection closed by peer

2024-05-18 10:44:31.746 | WARNING  | Broken network connection. Reconnecting...
2024-05-18 10:44:31.775 | INFO     | Connected to server demo-uk-eqx-01.p.ctrader.com:5202
2024-05-18 10:44:31.777 | DEBUG    | SEND >>>, MsgType: LOGON, Seq: 1, 8=FIX.4.4|9=139|35=A|49=demo.b2broker.5052391|56=cServer|50=TRADE|57=TRADE|34=1|52=20240518-10:44:31.834|98=0|108=10|553=5052391|554=***|141=Y|10=026|
2024-05-18 10:44:31.830 | DEBUG    | RECV <<<, MsgType: LOGOUT, Seq: 1, 8=FIX.4.4|9=154|35=5|34=1|49=cServer|50=TRADE|52=20240518-10:50:07.955|56=demo.b2broker.5052391|57=TRADE|58=Invalid Logon message: SendingTime accuracy problem, field=52|10=082|
2024-05-18 10:44:31.832 | ERROR    | Error receiving message to demo-uk-eqx-01.p.ctrader.com:5202: Connection closed by peer

2024-05-18 10:44:31.981 | WARNING  | Broken network connection. Reconnecting...
2024-05-18 10:44:32.010 | INFO     | Connected to server demo-uk-eqx-01.p.ctrader.com:5202
2024-05-18 10:44:32.011 | DEBUG    | SEND >>>, MsgType: LOGON, Seq: 1, 8=FIX.4.4|9=139|35=A|49=demo.b2broker.5052391|56=cServer|50=TRADE|57=TRADE|34=1|52=20240518-10:44:32.069|98=0|108=10|553=5052391|554=***|141=Y|10=027|
2024-05-18 10:44:32.061 | DEBUG    | RECV <<<, MsgType: LOGOUT, Seq: 1, 8=FIX.4.4|9=154|35=5|34=1|49=cServer|50=TRADE|52=20240518-10:50:08.188|56=demo.b2broker.5052391|57=TRADE|58=Invalid Logon message: SendingTime accuracy problem, field=52|10=081|
2024-05-18 10:44:32.062 | ERROR    | Error receiving message to demo-uk-eqx-01.p.ctrader.com:5202: Connection closed by peer

2024-05-18 10:44:32.215 | WARNING  | Broken network connection. Reconnecting...
2024-05-18 10:44:32.245 | INFO     | Connected to server demo-uk-eqx-01.p.ctrader.com:5202
2024-05-18 10:44:32.246 | DEBUG    | SEND >>>, MsgType: LOGON, Seq: 1, 8=FIX.4.4|9=139|35=A|49=demo.b2broker.5052391|56=cServer|50=TRADE|57=TRADE|34=1|52=20240518-10:44:32.304|98=0|108=10|553=5052391|554=***|141=Y|10=019|
2024-05-18 10:44:32.297 | DEBUG    | RECV <<<, MsgType: LOGOUT, Seq: 1, 8=FIX.4.4|9=154|35=5|34=1|49=cServer|50=TRADE|52=20240518-10:50:08.423|56=demo.b2broker.5052391|57=TRADE|58=Invalid Logon message: SendingTime accuracy problem, field=52|10=073|
2024-05-18 10:44:32.298 | ERROR    | Error receiving message to demo-uk-eqx-01.p.ctrader.com:5202: Connection closed by peer

2024-05-18 10:50:02.323 | WARNING  | Broken network connection. Reconnecting...
2024-05-18 10:50:02.355 | INFO     | Connected to server demo-uk-eqx-01.p.ctrader.com:5202
2024-05-18 10:50:02.355 | DEBUG    | SEND >>>, MsgType: LOGON, Seq: 1, 8=FIX.4.4|9=139|35=A|49=demo.b2broker.5052391|56=cServer|50=TRADE|57=TRADE|34=1|52=20240518-10:50:02.413|98=0|108=10|553=5052391|554=***|141=Y|10=014|
2024-05-18 10:50:02.456 | DEBUG    | RECV <<<, MsgType: LOGON, Seq: 1, 8=FIX.4.4|9=107|35=A|34=1|49=cServer|50=TRADE|52=20240518-10:50:08.709|56=demo.b2broker.5052391|57=TRADE|98=0|108=10|141=Y|10=231|

2024-05-18 10:50:12.491 | DEBUG    | SEND >>>, MsgType: HEARTBEAT, Seq: 2, 8=FIX.4.4|9=89|35=0|49=demo.b2broker.5052391|56=cServer|50=TRADE|57=TRADE|34=2|52=20240518-10:50:12.549|10=105|
2024-05-18 10:50:12.549 | DEBUG    | RECV <<<, MsgType: HEARTBEAT, Seq: 2, 8=FIX.4.4|9=89|35=0|34=2|49=cServer|50=TRADE|52=20240518-10:50:18.800|56=demo.b2broker.5052391|57=TRADE|10=101|
2024-05-18 10:50:22.614 | DEBUG    | SEND >>>, MsgType: HEARTBEAT, Seq: 3, 8=FIX.4.4|9=89|35=0|49=demo.b2broker.5052391|56=cServer|50=TRADE|57=TRADE|34=3|52=20240518-10:50:22.672|10=104|
2024-05-18 10:50:22.664 | DEBUG    | RECV <<<, MsgType: HEARTBEAT, Seq: 3, 8=FIX.4.4|9=89|35=0|34=3|49=cServer|50=TRADE|52=20240518-10:50:28.917|56=demo.b2broker.5052391|57=TRADE|10=112|

@chekh