ProtoOAPositionUnrealizedPnL
StockSharp.cTrader.Native.Model
实现: IMessage<ProtoOAPositionUnrealizedPnL>, IMessage, IEquatable<ProtoOAPositionUnrealizedPnL>, IDeepCloneable<ProtoOAPositionUnrealizedPnL>, IBufferMessage
属性
GrossUnrealizedPnL
public long GrossUnrealizedPnL { get; set; }
value = protoOAPositionUnrealizedPnL.GrossUnrealizedPnL
protoOAPositionUnrealizedPnL.GrossUnrealizedPnL = value
未实现的PnL总额以账户存款货币表示。
HasGrossUnrealizedPnL
public bool HasGrossUnrealizedPnL { get; }
value = protoOAPositionUnrealizedPnL.HasGrossUnrealizedPnL
获取是否设置了 " grossUnrealizedPnL " 字段
HasNetUnrealizedPnL
public bool HasNetUnrealizedPnL { get; }
value = protoOAPositionUnrealizedPnL.HasNetUnrealizedPnL
获取是否设置了 " netUnrealizedPnL " 字段
HasPositionId
public bool HasPositionId { get; }
value = protoOAPositionUnrealizedPnL.HasPositionId
获取是否设置了 " positionId " 字段
NetUnrealizedPnL
public long NetUnrealizedPnL { get; set; }
value = protoOAPositionUnrealizedPnL.NetUnrealizedPnL
protoOAPositionUnrealizedPnL.NetUnrealizedPnL = value
未实现的PnL账户存款货币表示的该职位净额不包括可能的结账佣金。
PositionId
public long PositionId { get; set; }
value = protoOAPositionUnrealizedPnL.PositionId
protoOAPositionUnrealizedPnL.PositionId = value
位置识别码
方法
ClearGrossUnrealizedPnL
public void ClearGrossUnrealizedPnL()
protoOAPositionUnrealizedPnL.ClearGrossUnrealizedPnL()
清除 " grossUnrealizedPnL " 字段的值
ClearNetUnrealizedPnL
public void ClearNetUnrealizedPnL()
protoOAPositionUnrealizedPnL.ClearNetUnrealizedPnL()
清除 " netUnrealizedPnL " 字段的值
ClearPositionId
public void ClearPositionId()
protoOAPositionUnrealizedPnL.ClearPositionId()
清除 " positionId " 字段的值
字段
GrossUnrealizedPnLFieldNumber
public const int GrossUnrealizedPnLFieldNumber
value = ProtoOAPositionUnrealizedPnL.GrossUnrealizedPnLFieldNumber
" grossUnrealizedPnL " 字段的字段编号。
NetUnrealizedPnLFieldNumber
public const int NetUnrealizedPnLFieldNumber
value = ProtoOAPositionUnrealizedPnL.NetUnrealizedPnLFieldNumber
" netUnrealizedPnL " 字段的字段编号。
PositionIdFieldNumber
public const int PositionIdFieldNumber
value = ProtoOAPositionUnrealizedPnL.PositionIdFieldNumber
" positionId " 字段的字段编号。