ProtoOASubscribeSpotsReq
* Request for subscribing on spot events of the specified symbol. After successful subscription you'll receive technical ProtoOASpotEvent with latest price, after which you'll start receiving updates on prices via consequent ProtoOASpotEvents.
Implements: IMessage<ProtoOASubscribeSpotsReq>, IMessage, IEquatable<ProtoOASubscribeSpotsReq>, IDeepCloneable<ProtoOASubscribeSpotsReq>, IBufferMessage
Properties
public long CtidTraderAccountId { get; set; }
value = protoOASubscribeSpotsReq.CtidTraderAccountId
protoOASubscribeSpotsReq.CtidTraderAccountId = value
Unique identifier of the trader's account. Used to match responses to trader's accounts.
public bool HasCtidTraderAccountId { get; }
value = protoOASubscribeSpotsReq.HasCtidTraderAccountId
Gets whether the "ctidTraderAccountId" field is set
public bool HasPayloadType { get; }
value = protoOASubscribeSpotsReq.HasPayloadType
Gets whether the "payloadType" field is set
public bool HasSubscribeToSpotTimestamp { get; }
value = protoOASubscribeSpotsReq.HasSubscribeToSpotTimestamp
Gets whether the "subscribeToSpotTimestamp" field is set
public bool SubscribeToSpotTimestamp { get; set; }
value = protoOASubscribeSpotsReq.SubscribeToSpotTimestamp
protoOASubscribeSpotsReq.SubscribeToSpotTimestamp = value
If TRUE you will also receive the timestamp in ProtoOASpotEvent.
public RepeatedField<long> SymbolId { get; }
value = protoOASubscribeSpotsReq.SymbolId
Unique identifier of the Symbol in cTrader platform.
Methods
public void ClearCtidTraderAccountId()
protoOASubscribeSpotsReq.ClearCtidTraderAccountId()
Clears the value of the "ctidTraderAccountId" field
public void ClearPayloadType()
protoOASubscribeSpotsReq.ClearPayloadType()
Clears the value of the "payloadType" field
public void ClearSubscribeToSpotTimestamp()
protoOASubscribeSpotsReq.ClearSubscribeToSpotTimestamp()
Clears the value of the "subscribeToSpotTimestamp" field
Fields
public const int CtidTraderAccountIdFieldNumber
value = ProtoOASubscribeSpotsReq.CtidTraderAccountIdFieldNumber
Field number for the "ctidTraderAccountId" field.
public const int PayloadTypeFieldNumber
value = ProtoOASubscribeSpotsReq.PayloadTypeFieldNumber
Field number for the "payloadType" field.
public const int SubscribeToSpotTimestampFieldNumber
value = ProtoOASubscribeSpotsReq.SubscribeToSpotTimestampFieldNumber
Field number for the "subscribeToSpotTimestamp" field.
public const int SymbolIdFieldNumber
value = ProtoOASubscribeSpotsReq.SymbolIdFieldNumber
Field number for the "symbolId" field.