Skip to content

Common Messages

ProtoErrorRes

Field Type Label Description
payloadType ProtoPayloadType Optional
errorCode string Required Contains name of ProtoErrorCode or other custom ErrorCodes (e.g. ProtoCHErrorCode)
description string Optional Error description
maintenanceEndTimestamp uint64 Optional CS-10489 Epoch timestamp in second

ProtoHeartbeatEvent

Event that is sent from Open API proxy and can be used as criteria that connection is healthy when no other messages are sent by cTrader platform.

Open API client can send this message when he needs to keep the connection open for a period without other messages longer than 30 seconds

Field Type Label Description
payloadType ProtoPayloadType Optional

ProtoMessage

Field Type Label Description
payloadType uint32 Required Contains id of ProtoPayloadType or other custom PayloadTypes (e.g. ProtoOAPayloadType)
payload bytes Required Serialized protobuf message that corresponds to payloadType
clientMsgId string Optional Request message id, assigned by the client that will be returned in the response

Last update: June 3, 2022