FU
Topics
14 May 2025, 07:26
3
0
07 Apr 2025, 10:09
121
0
07 Apr 2025, 06:31
184
0
fudheryk
10 Apr 2025, 14:58 ( Updated at: 11 Apr 2025, 05:27 )
Hi there,
You're not alone in facing this issue - the symptoms you're experiencing are consistent with a known problem related to the initial handshake and authentication process in the cTrader Open API, particularly when using a custom implementation.
First, to verify whether your clientId and clientSecret are still valid, the easiest way is to test them using the official Python or C# SDKs provided by Spotware. These SDKs are actively maintained and will give you a clear indication of whether your credentials are accepted or rejected. This helps eliminate concerns around framing, Protobuf compatibility, or protocol version mismatches.
The behavior you described - repeated payloadType 51 messages followed by a dropped connection - strongly suggests a protocol-level mismatch rather than invalid credentials. For clarity, payloadType 51 corresponds to a heartbeat message, not a version negotiation or response. Some clients send this heartbeat early on to maintain or confirm a connection, but it should not be confused with authentication or protocol negotiation.
From what I've seen while working on a C client implementation using libwebsockets, there are some important nuances:
This seems to suggest that:
Hope this sheds more light on the issue!
@fudheryk