ProtoOAMarginChangedEvent
* Event that is sent when the margin allocated to a specific position is changed.
Implements: IMessage<ProtoOAMarginChangedEvent>, IMessage, IEquatable<ProtoOAMarginChangedEvent>, IDeepCloneable<ProtoOAMarginChangedEvent>, IBufferMessage
Properties
public long CtidTraderAccountId { get; set; }
value = protoOAMarginChangedEvent.CtidTraderAccountId
protoOAMarginChangedEvent.CtidTraderAccountId = value
Unique identifier of the trader's account. Used to match responses to trader's accounts.
public bool HasCtidTraderAccountId { get; }
value = protoOAMarginChangedEvent.HasCtidTraderAccountId
Gets whether the "ctidTraderAccountId" field is set
public bool HasMoneyDigits { get; }
value = protoOAMarginChangedEvent.HasMoneyDigits
Gets whether the "moneyDigits" field is set
public bool HasPayloadType { get; }
value = protoOAMarginChangedEvent.HasPayloadType
Gets whether the "payloadType" field is set
public bool HasPositionId { get; }
value = protoOAMarginChangedEvent.HasPositionId
Gets whether the "positionId" field is set
public bool HasUsedMargin { get; }
value = protoOAMarginChangedEvent.HasUsedMargin
Gets whether the "usedMargin" field is set
public uint MoneyDigits { get; set; }
value = protoOAMarginChangedEvent.MoneyDigits
protoOAMarginChangedEvent.MoneyDigits = value
Specifies the exponent of the monetary values. E.g. moneyDigits = 8 must be interpret as business value multiplied by 10^8, then real balance would be 10053099944 / 10^8 = 100.53099944. Affects usedMargin.
public ulong PositionId { get; set; }
value = protoOAMarginChangedEvent.PositionId
protoOAMarginChangedEvent.PositionId = value
The unique ID of the position.
public ulong UsedMargin { get; set; }
value = protoOAMarginChangedEvent.UsedMargin
protoOAMarginChangedEvent.UsedMargin = value
The new value of the margin used.
Methods
public void ClearCtidTraderAccountId()
protoOAMarginChangedEvent.ClearCtidTraderAccountId()
Clears the value of the "ctidTraderAccountId" field
public void ClearMoneyDigits()
protoOAMarginChangedEvent.ClearMoneyDigits()
Clears the value of the "moneyDigits" field
public void ClearPayloadType()
protoOAMarginChangedEvent.ClearPayloadType()
Clears the value of the "payloadType" field
public void ClearPositionId()
protoOAMarginChangedEvent.ClearPositionId()
Clears the value of the "positionId" field
public void ClearUsedMargin()
protoOAMarginChangedEvent.ClearUsedMargin()
Clears the value of the "usedMargin" field
Fields
public const int CtidTraderAccountIdFieldNumber
value = ProtoOAMarginChangedEvent.CtidTraderAccountIdFieldNumber
Field number for the "ctidTraderAccountId" field.
public const int MoneyDigitsFieldNumber
value = ProtoOAMarginChangedEvent.MoneyDigitsFieldNumber
Field number for the "moneyDigits" field.
public const int PayloadTypeFieldNumber
value = ProtoOAMarginChangedEvent.PayloadTypeFieldNumber
Field number for the "payloadType" field.
public const int PositionIdFieldNumber
value = ProtoOAMarginChangedEvent.PositionIdFieldNumber
Field number for the "positionId" field.
public const int UsedMarginFieldNumber
value = ProtoOAMarginChangedEvent.UsedMarginFieldNumber
Field number for the "usedMargin" field.