ProtoOASpotEvent

StockSharp.cTrader.Native.Model

* 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

Ask
public ulong Ask { get; set; }
value = protoOASpotEvent.Ask
protoOASpotEvent.Ask = value

Ask price. Specified in 1/100_000 of unit of a price.

Bid
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)

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

HasAsk
public bool HasAsk { get; }
value = protoOASpotEvent.HasAsk

Gets whether the "ask" field is set

HasBid
public bool HasBid { get; }
value = protoOASpotEvent.HasBid

Gets whether the "bid" field is set

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

Gets whether the "ctidTraderAccountId" field is set

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

Gets whether the "payloadType" field is set

HasSessionClose
public bool HasSessionClose { get; }
value = protoOASpotEvent.HasSessionClose

Gets whether the "sessionClose" field is set

HasSymbolId
public bool HasSymbolId { get; }
value = protoOASpotEvent.HasSymbolId

Gets whether the "symbolId" field is set

HasTimestamp
public bool HasTimestamp { get; }
value = protoOASpotEvent.HasTimestamp

Gets whether the "timestamp" field is set

SessionClose
public ulong SessionClose { get; set; }
value = protoOASpotEvent.SessionClose
protoOASpotEvent.SessionClose = value

Last session close. Specified in 1/100_000 of unit of a price.

SymbolId
public long SymbolId { get; set; }
value = protoOASpotEvent.SymbolId
protoOASpotEvent.SymbolId = value

Unique identifier of the Symbol in cTrader platform.

Timestamp
public long Timestamp { get; set; }
value = protoOASpotEvent.Timestamp
protoOASpotEvent.Timestamp = value

The Unix time for spot.

Trendbar
public RepeatedField<ProtoOATrendbar> Trendbar { get; }
value = protoOASpotEvent.Trendbar

Returns live trend bar. Requires subscription on the trend bars.

Methods

ClearAsk
public void ClearAsk()
protoOASpotEvent.ClearAsk()

Clears the value of the "ask" field

ClearBid
public void ClearBid()
protoOASpotEvent.ClearBid()

Clears the value of the "bid" field

ClearCtidTraderAccountId
public void ClearCtidTraderAccountId()
protoOASpotEvent.ClearCtidTraderAccountId()

Clears the value of the "ctidTraderAccountId" field

ClearPayloadType
public void ClearPayloadType()
protoOASpotEvent.ClearPayloadType()

Clears the value of the "payloadType" field

ClearSessionClose
public void ClearSessionClose()
protoOASpotEvent.ClearSessionClose()

Clears the value of the "sessionClose" field

ClearSymbolId
public void ClearSymbolId()
protoOASpotEvent.ClearSymbolId()

Clears the value of the "symbolId" field

ClearTimestamp
public void ClearTimestamp()
protoOASpotEvent.ClearTimestamp()

Clears the value of the "timestamp" field

Fields

AskFieldNumber
public const int AskFieldNumber
value = ProtoOASpotEvent.AskFieldNumber

Field number for the "ask" field.

BidFieldNumber
public const int BidFieldNumber
value = ProtoOASpotEvent.BidFieldNumber

Field number for the "bid" field.

CtidTraderAccountIdFieldNumber
public const int CtidTraderAccountIdFieldNumber
value = ProtoOASpotEvent.CtidTraderAccountIdFieldNumber

Field number for the "ctidTraderAccountId" field.

PayloadTypeFieldNumber
public const int PayloadTypeFieldNumber
value = ProtoOASpotEvent.PayloadTypeFieldNumber

Field number for the "payloadType" field.

SessionCloseFieldNumber
public const int SessionCloseFieldNumber
value = ProtoOASpotEvent.SessionCloseFieldNumber

Field number for the "sessionClose" field.

SymbolIdFieldNumber
public const int SymbolIdFieldNumber
value = ProtoOASpotEvent.SymbolIdFieldNumber

Field number for the "symbolId" field.

TimestampFieldNumber
public const int TimestampFieldNumber
value = ProtoOASpotEvent.TimestampFieldNumber

Field number for the "timestamp" field.

TrendbarFieldNumber
public const int TrendbarFieldNumber
value = ProtoOASpotEvent.TrendbarFieldNumber

Field number for the "trendbar" field.