ProtoOAPositionUnrealizedPnL

StockSharp.cTrader.Native.Model

Implements: IMessage<ProtoOAPositionUnrealizedPnL>, IMessage, IEquatable<ProtoOAPositionUnrealizedPnL>, IDeepCloneable<ProtoOAPositionUnrealizedPnL>, IBufferMessage

Properties

GrossUnrealizedPnL
public long GrossUnrealizedPnL { get; set; }
value = protoOAPositionUnrealizedPnL.GrossUnrealizedPnL
protoOAPositionUnrealizedPnL.GrossUnrealizedPnL = value

The gross unrealized PnL of the position denoted in the account deposit currency.

HasGrossUnrealizedPnL
public bool HasGrossUnrealizedPnL { get; }
value = protoOAPositionUnrealizedPnL.HasGrossUnrealizedPnL

Gets whether the "grossUnrealizedPnL" field is set

HasNetUnrealizedPnL
public bool HasNetUnrealizedPnL { get; }
value = protoOAPositionUnrealizedPnL.HasNetUnrealizedPnL

Gets whether the "netUnrealizedPnL" field is set

HasPositionId
public bool HasPositionId { get; }
value = protoOAPositionUnrealizedPnL.HasPositionId

Gets whether the "positionId" field is set

NetUnrealizedPnL
public long NetUnrealizedPnL { get; set; }
value = protoOAPositionUnrealizedPnL.NetUnrealizedPnL
protoOAPositionUnrealizedPnL.NetUnrealizedPnL = value

The net unrealized PnL of the position denoted in the account deposit currency. It does not include potential closing commission.

PositionId
public long PositionId { get; set; }
value = protoOAPositionUnrealizedPnL.PositionId
protoOAPositionUnrealizedPnL.PositionId = value

The position ID.

Methods

ClearGrossUnrealizedPnL
public void ClearGrossUnrealizedPnL()
protoOAPositionUnrealizedPnL.ClearGrossUnrealizedPnL()

Clears the value of the "grossUnrealizedPnL" field

ClearNetUnrealizedPnL
public void ClearNetUnrealizedPnL()
protoOAPositionUnrealizedPnL.ClearNetUnrealizedPnL()

Clears the value of the "netUnrealizedPnL" field

ClearPositionId
public void ClearPositionId()
protoOAPositionUnrealizedPnL.ClearPositionId()

Clears the value of the "positionId" field

Fields

GrossUnrealizedPnLFieldNumber
public const int GrossUnrealizedPnLFieldNumber
value = ProtoOAPositionUnrealizedPnL.GrossUnrealizedPnLFieldNumber

Field number for the "grossUnrealizedPnL" field.

NetUnrealizedPnLFieldNumber
public const int NetUnrealizedPnLFieldNumber
value = ProtoOAPositionUnrealizedPnL.NetUnrealizedPnLFieldNumber

Field number for the "netUnrealizedPnL" field.

PositionIdFieldNumber
public const int PositionIdFieldNumber
value = ProtoOAPositionUnrealizedPnL.PositionIdFieldNumber

Field number for the "positionId" field.