ProtoOASubscribeSpotsReq

StockSharp.cTrader.Native.Model

* 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

CtidTraderAccountId
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.

HasCtidTraderAccountId
public bool HasCtidTraderAccountId { get; }
value = protoOASubscribeSpotsReq.HasCtidTraderAccountId

Gets whether the "ctidTraderAccountId" field is set

HasPayloadType
public bool HasPayloadType { get; }
value = protoOASubscribeSpotsReq.HasPayloadType

Gets whether the "payloadType" field is set

HasSubscribeToSpotTimestamp
public bool HasSubscribeToSpotTimestamp { get; }
value = protoOASubscribeSpotsReq.HasSubscribeToSpotTimestamp

Gets whether the "subscribeToSpotTimestamp" field is set

SubscribeToSpotTimestamp
public bool SubscribeToSpotTimestamp { get; set; }
value = protoOASubscribeSpotsReq.SubscribeToSpotTimestamp
protoOASubscribeSpotsReq.SubscribeToSpotTimestamp = value

If TRUE you will also receive the timestamp in ProtoOASpotEvent.

SymbolId
public RepeatedField<long> SymbolId { get; }
value = protoOASubscribeSpotsReq.SymbolId

Unique identifier of the Symbol in cTrader platform.

Methods

ClearCtidTraderAccountId
public void ClearCtidTraderAccountId()
protoOASubscribeSpotsReq.ClearCtidTraderAccountId()

Clears the value of the "ctidTraderAccountId" field

ClearPayloadType
public void ClearPayloadType()
protoOASubscribeSpotsReq.ClearPayloadType()

Clears the value of the "payloadType" field

ClearSubscribeToSpotTimestamp
public void ClearSubscribeToSpotTimestamp()
protoOASubscribeSpotsReq.ClearSubscribeToSpotTimestamp()

Clears the value of the "subscribeToSpotTimestamp" field

Fields

CtidTraderAccountIdFieldNumber
public const int CtidTraderAccountIdFieldNumber
value = ProtoOASubscribeSpotsReq.CtidTraderAccountIdFieldNumber

Field number for the "ctidTraderAccountId" field.

PayloadTypeFieldNumber
public const int PayloadTypeFieldNumber
value = ProtoOASubscribeSpotsReq.PayloadTypeFieldNumber

Field number for the "payloadType" field.

SubscribeToSpotTimestampFieldNumber
public const int SubscribeToSpotTimestampFieldNumber
value = ProtoOASubscribeSpotsReq.SubscribeToSpotTimestampFieldNumber

Field number for the "subscribeToSpotTimestamp" field.

SymbolIdFieldNumber
public const int SymbolIdFieldNumber
value = ProtoOASubscribeSpotsReq.SymbolIdFieldNumber

Field number for the "symbolId" field.