ProtoOAPositionUnrealizedPnL
Implements: IMessage<ProtoOAPositionUnrealizedPnL>, IMessage, IEquatable<ProtoOAPositionUnrealizedPnL>, IDeepCloneable<ProtoOAPositionUnrealizedPnL>, IBufferMessage
Properties
public long GrossUnrealizedPnL { get; set; }
value = protoOAPositionUnrealizedPnL.GrossUnrealizedPnL
protoOAPositionUnrealizedPnL.GrossUnrealizedPnL = value
The gross unrealized PnL of the position denoted in the account deposit currency.
public bool HasGrossUnrealizedPnL { get; }
value = protoOAPositionUnrealizedPnL.HasGrossUnrealizedPnL
Gets whether the "grossUnrealizedPnL" field is set
public bool HasNetUnrealizedPnL { get; }
value = protoOAPositionUnrealizedPnL.HasNetUnrealizedPnL
Gets whether the "netUnrealizedPnL" field is set
public bool HasPositionId { get; }
value = protoOAPositionUnrealizedPnL.HasPositionId
Gets whether the "positionId" field is set
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.
public long PositionId { get; set; }
value = protoOAPositionUnrealizedPnL.PositionId
protoOAPositionUnrealizedPnL.PositionId = value
The position ID.
Methods
public void ClearGrossUnrealizedPnL()
protoOAPositionUnrealizedPnL.ClearGrossUnrealizedPnL()
Clears the value of the "grossUnrealizedPnL" field
public void ClearNetUnrealizedPnL()
protoOAPositionUnrealizedPnL.ClearNetUnrealizedPnL()
Clears the value of the "netUnrealizedPnL" field
public void ClearPositionId()
protoOAPositionUnrealizedPnL.ClearPositionId()
Clears the value of the "positionId" field
Fields
public const int GrossUnrealizedPnLFieldNumber
value = ProtoOAPositionUnrealizedPnL.GrossUnrealizedPnLFieldNumber
Field number for the "grossUnrealizedPnL" field.
public const int NetUnrealizedPnLFieldNumber
value = ProtoOAPositionUnrealizedPnL.NetUnrealizedPnLFieldNumber
Field number for the "netUnrealizedPnL" field.
public const int PositionIdFieldNumber
value = ProtoOAPositionUnrealizedPnL.PositionIdFieldNumber
Field number for the "positionId" field.