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.

Implementa: IMessage<ProtoOASpotEvent>, IMessage, IEquatable<ProtoOASpotEvent>, IDeepCloneable<ProtoOASpotEvent>, IBufferMessage

Propriedades

Ask : ulong

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

Bid : ulong

Bid price. Specified in 1/100_000 of unit of a price. (e.g. 1.23 -> 123_000)

CtidTraderAccountId : long

Unique identifier of the trader's account. Used to match responses to trader's accounts.

HasAsk : bool

Gets whether the "ask" field is set

HasBid : bool

Gets whether the "bid" field is set

HasCtidTraderAccountId : bool

Gets whether the "ctidTraderAccountId" field is set

HasPayloadType : bool

Gets whether the "payloadType" field is set

HasSessionClose : bool

Gets whether the "sessionClose" field is set

HasSymbolId : bool

Gets whether the "symbolId" field is set

HasTimestamp : bool

Gets whether the "timestamp" field is set

SessionClose : ulong

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

SymbolId : long

Unique identifier of the Symbol in cTrader platform.

Timestamp : long

The Unix time for spot.

Trendbar : RepeatedField<ProtoOATrendbar>

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

Métodos

ClearAsk()

Clears the value of the "ask" field

ClearBid()

Clears the value of the "bid" field

ClearCtidTraderAccountId()

Clears the value of the "ctidTraderAccountId" field

ClearPayloadType()

Clears the value of the "payloadType" field

ClearSessionClose()

Clears the value of the "sessionClose" field

ClearSymbolId()

Clears the value of the "symbolId" field

ClearTimestamp()

Clears the value of the "timestamp" field

Campos

AskFieldNumber : int

Field number for the "ask" field.

BidFieldNumber : int

Field number for the "bid" field.

CtidTraderAccountIdFieldNumber : int

Field number for the "ctidTraderAccountId" field.

PayloadTypeFieldNumber : int

Field number for the "payloadType" field.

SessionCloseFieldNumber : int

Field number for the "sessionClose" field.

SymbolIdFieldNumber : int

Field number for the "symbolId" field.

TimestampFieldNumber : int

Field number for the "timestamp" field.

TrendbarFieldNumber : int

Field number for the "trendbar" field.