ProtoOAGetPositionUnrealizedPnLRes

StockSharp.cTrader.Native.Model

* Response to ProtoOAGetPositionUnrealizedPnLReq request.

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

Properties

CtidTraderAccountId
public long CtidTraderAccountId { get; set; }
value = protoOAGetPositionUnrealizedPnLRes.CtidTraderAccountId
protoOAGetPositionUnrealizedPnLRes.CtidTraderAccountId = value

The unique identifier of the trader's account in cTrader platform.

HasCtidTraderAccountId
public bool HasCtidTraderAccountId { get; }
value = protoOAGetPositionUnrealizedPnLRes.HasCtidTraderAccountId

Gets whether the "ctidTraderAccountId" field is set

HasMoneyDigits
public bool HasMoneyDigits { get; }
value = protoOAGetPositionUnrealizedPnLRes.HasMoneyDigits

Gets whether the "moneyDigits" field is set

HasPayloadType
public bool HasPayloadType { get; }
value = protoOAGetPositionUnrealizedPnLRes.HasPayloadType

Gets whether the "payloadType" field is set

MoneyDigits
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.

PositionUnrealizedPnL
public RepeatedField<ProtoOAPositionUnrealizedPnL> PositionUnrealizedPnL { get; }
value = protoOAGetPositionUnrealizedPnLRes.PositionUnrealizedPnL

Information about trader's positions' unrealized PnLs.

Methods

ClearCtidTraderAccountId
public void ClearCtidTraderAccountId()
protoOAGetPositionUnrealizedPnLRes.ClearCtidTraderAccountId()

Clears the value of the "ctidTraderAccountId" field

ClearMoneyDigits
public void ClearMoneyDigits()
protoOAGetPositionUnrealizedPnLRes.ClearMoneyDigits()

Clears the value of the "moneyDigits" field

ClearPayloadType
public void ClearPayloadType()
protoOAGetPositionUnrealizedPnLRes.ClearPayloadType()

Clears the value of the "payloadType" field

Fields

CtidTraderAccountIdFieldNumber
public const int CtidTraderAccountIdFieldNumber
value = ProtoOAGetPositionUnrealizedPnLRes.CtidTraderAccountIdFieldNumber

Field number for the "ctidTraderAccountId" field.

MoneyDigitsFieldNumber
public const int MoneyDigitsFieldNumber
value = ProtoOAGetPositionUnrealizedPnLRes.MoneyDigitsFieldNumber

Field number for the "moneyDigits" field.

PayloadTypeFieldNumber
public const int PayloadTypeFieldNumber
value = ProtoOAGetPositionUnrealizedPnLRes.PayloadTypeFieldNumber

Field number for the "payloadType" field.

PositionUnrealizedPnLFieldNumber
public const int PositionUnrealizedPnLFieldNumber
value = ProtoOAGetPositionUnrealizedPnLRes.PositionUnrealizedPnLFieldNumber

Field number for the "positionUnrealizedPnL" field.