ProtoOAGetPositionUnrealizedPnLRes
* Response to ProtoOAGetPositionUnrealizedPnLReq request.
Implements: IMessage<ProtoOAGetPositionUnrealizedPnLRes>, IMessage, IEquatable<ProtoOAGetPositionUnrealizedPnLRes>, IDeepCloneable<ProtoOAGetPositionUnrealizedPnLRes>, IBufferMessage
Properties
public long CtidTraderAccountId { get; set; }
value = protoOAGetPositionUnrealizedPnLRes.CtidTraderAccountId
protoOAGetPositionUnrealizedPnLRes.CtidTraderAccountId = value
The unique identifier of the trader's account in cTrader platform.
public bool HasCtidTraderAccountId { get; }
value = protoOAGetPositionUnrealizedPnLRes.HasCtidTraderAccountId
Gets whether the "ctidTraderAccountId" field is set
public bool HasMoneyDigits { get; }
value = protoOAGetPositionUnrealizedPnLRes.HasMoneyDigits
Gets whether the "moneyDigits" field is set
public bool HasPayloadType { get; }
value = protoOAGetPositionUnrealizedPnLRes.HasPayloadType
Gets whether the "payloadType" field is set
public uint MoneyDigits { get; set; }
value = protoOAGetPositionUnrealizedPnLRes.MoneyDigits
protoOAGetPositionUnrealizedPnLRes.MoneyDigits = value
Specifies the exponent of various monetary values. E.g., moneyDigits = 8 should be interpreted as the value multiplied by 10^8 with the 'real' value equal to 10053099944 / 10^8 = 100.53099944. Affects positionUnrealizedPnL.grossUnrealizedPnL, positionUnrealizedPnL.netUnrealizedPnL.
public RepeatedField<ProtoOAPositionUnrealizedPnL> PositionUnrealizedPnL { get; }
value = protoOAGetPositionUnrealizedPnLRes.PositionUnrealizedPnL
Information about trader's positions' unrealized PnLs.
Methods
public void ClearCtidTraderAccountId()
protoOAGetPositionUnrealizedPnLRes.ClearCtidTraderAccountId()
Clears the value of the "ctidTraderAccountId" field
public void ClearMoneyDigits()
protoOAGetPositionUnrealizedPnLRes.ClearMoneyDigits()
Clears the value of the "moneyDigits" field
public void ClearPayloadType()
protoOAGetPositionUnrealizedPnLRes.ClearPayloadType()
Clears the value of the "payloadType" field
Fields
public const int CtidTraderAccountIdFieldNumber
value = ProtoOAGetPositionUnrealizedPnLRes.CtidTraderAccountIdFieldNumber
Field number for the "ctidTraderAccountId" field.
public const int MoneyDigitsFieldNumber
value = ProtoOAGetPositionUnrealizedPnLRes.MoneyDigitsFieldNumber
Field number for the "moneyDigits" field.
public const int PayloadTypeFieldNumber
value = ProtoOAGetPositionUnrealizedPnLRes.PayloadTypeFieldNumber
Field number for the "payloadType" field.
public const int PositionUnrealizedPnLFieldNumber
value = ProtoOAGetPositionUnrealizedPnLRes.PositionUnrealizedPnLFieldNumber
Field number for the "positionUnrealizedPnL" field.