ProtoOAExpectedMarginReq
* Request for getting the margin estimate according to leverage profiles. Can be used before sending a new order request. This doesn't consider ACCORDING_TO_GSL margin calculation type, as this calculation is trivial: usedMargin = (VWAP price of the position - GSL price) * volume * Quote2Deposit.
Implements: IMessage<ProtoOAExpectedMarginReq>, IMessage, IEquatable<ProtoOAExpectedMarginReq>, IDeepCloneable<ProtoOAExpectedMarginReq>, IBufferMessage
Properties
public long CtidTraderAccountId { get; set; }
value = protoOAExpectedMarginReq.CtidTraderAccountId
protoOAExpectedMarginReq.CtidTraderAccountId = value
Unique identifier of the trader's account. Used to match responses to trader's accounts.
public bool HasCtidTraderAccountId { get; }
value = protoOAExpectedMarginReq.HasCtidTraderAccountId
Gets whether the "ctidTraderAccountId" field is set
public bool HasPayloadType { get; }
value = protoOAExpectedMarginReq.HasPayloadType
Gets whether the "payloadType" field is set
public bool HasSymbolId { get; }
value = protoOAExpectedMarginReq.HasSymbolId
Gets whether the "symbolId" field is set
public long SymbolId { get; set; }
value = protoOAExpectedMarginReq.SymbolId
protoOAExpectedMarginReq.SymbolId = value
Unique identifier of the Symbol in cTrader platform.
public RepeatedField<long> Volume { get; }
value = protoOAExpectedMarginReq.Volume
Volume represented in 0.01 of a unit (e.g. cents).
Methods
public void ClearCtidTraderAccountId()
protoOAExpectedMarginReq.ClearCtidTraderAccountId()
Clears the value of the "ctidTraderAccountId" field
public void ClearPayloadType()
protoOAExpectedMarginReq.ClearPayloadType()
Clears the value of the "payloadType" field
public void ClearSymbolId()
protoOAExpectedMarginReq.ClearSymbolId()
Clears the value of the "symbolId" field
Fields
public const int CtidTraderAccountIdFieldNumber
value = ProtoOAExpectedMarginReq.CtidTraderAccountIdFieldNumber
Field number for the "ctidTraderAccountId" field.
public const int PayloadTypeFieldNumber
value = ProtoOAExpectedMarginReq.PayloadTypeFieldNumber
Field number for the "payloadType" field.
public const int SymbolIdFieldNumber
value = ProtoOAExpectedMarginReq.SymbolIdFieldNumber
Field number for the "symbolId" field.
public const int VolumeFieldNumber
value = ProtoOAExpectedMarginReq.VolumeFieldNumber
Field number for the "volume" field.