ProtoOAExpectedMarginReq

StockSharp.cTrader.Native.Model

* 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

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

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

Gets whether the "ctidTraderAccountId" field is set

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

Gets whether the "payloadType" field is set

HasSymbolId
public bool HasSymbolId { get; }
value = protoOAExpectedMarginReq.HasSymbolId

Gets whether the "symbolId" field is set

SymbolId
public long SymbolId { get; set; }
value = protoOAExpectedMarginReq.SymbolId
protoOAExpectedMarginReq.SymbolId = value

Unique identifier of the Symbol in cTrader platform.

Volume
public RepeatedField<long> Volume { get; }
value = protoOAExpectedMarginReq.Volume

Volume represented in 0.01 of a unit (e.g. cents).

Methods

ClearCtidTraderAccountId
public void ClearCtidTraderAccountId()
protoOAExpectedMarginReq.ClearCtidTraderAccountId()

Clears the value of the "ctidTraderAccountId" field

ClearPayloadType
public void ClearPayloadType()
protoOAExpectedMarginReq.ClearPayloadType()

Clears the value of the "payloadType" field

ClearSymbolId
public void ClearSymbolId()
protoOAExpectedMarginReq.ClearSymbolId()

Clears the value of the "symbolId" field

Fields

CtidTraderAccountIdFieldNumber
public const int CtidTraderAccountIdFieldNumber
value = ProtoOAExpectedMarginReq.CtidTraderAccountIdFieldNumber

Field number for the "ctidTraderAccountId" field.

PayloadTypeFieldNumber
public const int PayloadTypeFieldNumber
value = ProtoOAExpectedMarginReq.PayloadTypeFieldNumber

Field number for the "payloadType" field.

SymbolIdFieldNumber
public const int SymbolIdFieldNumber
value = ProtoOAExpectedMarginReq.SymbolIdFieldNumber

Field number for the "symbolId" field.

VolumeFieldNumber
public const int VolumeFieldNumber
value = ProtoOAExpectedMarginReq.VolumeFieldNumber

Field number for the "volume" field.