ProtoOASpotEvent
* Event that is sent when a new spot event is generated on the server side. Requires subscription on the spot events, see ProtoOASubscribeSpotsReq. First event, received after subscription will contain latest spot prices even if market is closed.
Implements: IMessage<ProtoOASpotEvent>, IMessage, IEquatable<ProtoOASpotEvent>, IDeepCloneable<ProtoOASpotEvent>, IBufferMessage
Properties
public ulong Ask { get; set; }
value = protoOASpotEvent.Ask
protoOASpotEvent.Ask = value
Ask price. Specified in 1/100_000 of unit of a price.
public ulong Bid { get; set; }
value = protoOASpotEvent.Bid
protoOASpotEvent.Bid = value
Bid price. Specified in 1/100_000 of unit of a price. (e.g. 1.23 -> 123_000)
public long CtidTraderAccountId { get; set; }
value = protoOASpotEvent.CtidTraderAccountId
protoOASpotEvent.CtidTraderAccountId = value
Unique identifier of the trader's account. Used to match responses to trader's accounts.
public bool HasAsk { get; }
value = protoOASpotEvent.HasAsk
Gets whether the "ask" field is set
public bool HasBid { get; }
value = protoOASpotEvent.HasBid
Gets whether the "bid" field is set
public bool HasCtidTraderAccountId { get; }
value = protoOASpotEvent.HasCtidTraderAccountId
Gets whether the "ctidTraderAccountId" field is set
public bool HasPayloadType { get; }
value = protoOASpotEvent.HasPayloadType
Gets whether the "payloadType" field is set
public bool HasSessionClose { get; }
value = protoOASpotEvent.HasSessionClose
Gets whether the "sessionClose" field is set
public bool HasSymbolId { get; }
value = protoOASpotEvent.HasSymbolId
Gets whether the "symbolId" field is set
public bool HasTimestamp { get; }
value = protoOASpotEvent.HasTimestamp
Gets whether the "timestamp" field is set
public ulong SessionClose { get; set; }
value = protoOASpotEvent.SessionClose
protoOASpotEvent.SessionClose = value
Last session close. Specified in 1/100_000 of unit of a price.
public long SymbolId { get; set; }
value = protoOASpotEvent.SymbolId
protoOASpotEvent.SymbolId = value
Unique identifier of the Symbol in cTrader platform.
public long Timestamp { get; set; }
value = protoOASpotEvent.Timestamp
protoOASpotEvent.Timestamp = value
The Unix time for spot.
public RepeatedField<ProtoOATrendbar> Trendbar { get; }
value = protoOASpotEvent.Trendbar
Returns live trend bar. Requires subscription on the trend bars.
Methods
public void ClearCtidTraderAccountId()
protoOASpotEvent.ClearCtidTraderAccountId()
Clears the value of the "ctidTraderAccountId" field
public void ClearPayloadType()
protoOASpotEvent.ClearPayloadType()
Clears the value of the "payloadType" field
public void ClearSessionClose()
protoOASpotEvent.ClearSessionClose()
Clears the value of the "sessionClose" field
public void ClearSymbolId()
protoOASpotEvent.ClearSymbolId()
Clears the value of the "symbolId" field
public void ClearTimestamp()
protoOASpotEvent.ClearTimestamp()
Clears the value of the "timestamp" field
Fields
public const int AskFieldNumber
value = ProtoOASpotEvent.AskFieldNumber
Field number for the "ask" field.
public const int BidFieldNumber
value = ProtoOASpotEvent.BidFieldNumber
Field number for the "bid" field.
public const int CtidTraderAccountIdFieldNumber
value = ProtoOASpotEvent.CtidTraderAccountIdFieldNumber
Field number for the "ctidTraderAccountId" field.
public const int PayloadTypeFieldNumber
value = ProtoOASpotEvent.PayloadTypeFieldNumber
Field number for the "payloadType" field.
public const int SessionCloseFieldNumber
value = ProtoOASpotEvent.SessionCloseFieldNumber
Field number for the "sessionClose" field.
public const int SymbolIdFieldNumber
value = ProtoOASpotEvent.SymbolIdFieldNumber
Field number for the "symbolId" field.
public const int TimestampFieldNumber
value = ProtoOASpotEvent.TimestampFieldNumber
Field number for the "timestamp" field.
public const int TrendbarFieldNumber
value = ProtoOASpotEvent.TrendbarFieldNumber
Field number for the "trendbar" field.