ProtoOAClosePositionDetail

StockSharp.cTrader.Native.Model

* Trading details for closing deal.

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

Properties

Balance
public long Balance { get; set; }
value = protoOAClosePositionDetail.Balance
protoOAClosePositionDetail.Balance = value

Account balance after closing deal execution.

BalanceVersion
public long BalanceVersion { get; set; }
value = protoOAClosePositionDetail.BalanceVersion
protoOAClosePositionDetail.BalanceVersion = value

Balance version of the account related to closing deal operation.

ClosedVolume
public long ClosedVolume { get; set; }
value = protoOAClosePositionDetail.ClosedVolume
protoOAClosePositionDetail.ClosedVolume = value

Closed volume in cents.

Commission
public long Commission { get; set; }
value = protoOAClosePositionDetail.Commission
protoOAClosePositionDetail.Commission = value

Amount of realized commission related to closed volume.

EntryPrice
public double EntryPrice { get; set; }
value = protoOAClosePositionDetail.EntryPrice
protoOAClosePositionDetail.EntryPrice = value

Position price at the moment of filling the closing order.

GrossProfit
public long GrossProfit { get; set; }
value = protoOAClosePositionDetail.GrossProfit
protoOAClosePositionDetail.GrossProfit = value

Amount of realized gross profit after closing deal execution.

HasBalance
public bool HasBalance { get; }
value = protoOAClosePositionDetail.HasBalance

Gets whether the "balance" field is set

HasBalanceVersion
public bool HasBalanceVersion { get; }
value = protoOAClosePositionDetail.HasBalanceVersion

Gets whether the "balanceVersion" field is set

HasClosedVolume
public bool HasClosedVolume { get; }
value = protoOAClosePositionDetail.HasClosedVolume

Gets whether the "closedVolume" field is set

HasCommission
public bool HasCommission { get; }
value = protoOAClosePositionDetail.HasCommission

Gets whether the "commission" field is set

HasEntryPrice
public bool HasEntryPrice { get; }
value = protoOAClosePositionDetail.HasEntryPrice

Gets whether the "entryPrice" field is set

HasGrossProfit
public bool HasGrossProfit { get; }
value = protoOAClosePositionDetail.HasGrossProfit

Gets whether the "grossProfit" field is set

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

Gets whether the "moneyDigits" field is set

HasPnlConversionFee
public bool HasPnlConversionFee { get; }
value = protoOAClosePositionDetail.HasPnlConversionFee

Gets whether the "pnlConversionFee" field is set

HasQuoteToDepositConversionRate
public bool HasQuoteToDepositConversionRate { get; }
value = protoOAClosePositionDetail.HasQuoteToDepositConversionRate

Gets whether the "quoteToDepositConversionRate" field is set

HasSwap
public bool HasSwap { get; }
value = protoOAClosePositionDetail.HasSwap

Gets whether the "swap" field is set

MoneyDigits
public uint MoneyDigits { get; set; }
value = protoOAClosePositionDetail.MoneyDigits
protoOAClosePositionDetail.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 grossProfit, swap, commission, balance, pnlConversionFee.

PnlConversionFee
public long PnlConversionFee { get; set; }
value = protoOAClosePositionDetail.PnlConversionFee
protoOAClosePositionDetail.PnlConversionFee = value

Fee for conversion applied to the Deal in account's ccy when trader symbol's quote asset id <> ProtoOATrader.depositAssetId.

QuoteToDepositConversionRate
public double QuoteToDepositConversionRate { get; set; }
value = protoOAClosePositionDetail.QuoteToDepositConversionRate
protoOAClosePositionDetail.QuoteToDepositConversionRate = value

Quote/Deposit currency conversion rate on the time of closing deal execution.

Swap
public long Swap { get; set; }
value = protoOAClosePositionDetail.Swap
protoOAClosePositionDetail.Swap = value

Amount of realized swap related to closed volume.

Methods

ClearBalance
public void ClearBalance()
protoOAClosePositionDetail.ClearBalance()

Clears the value of the "balance" field

ClearBalanceVersion
public void ClearBalanceVersion()
protoOAClosePositionDetail.ClearBalanceVersion()

Clears the value of the "balanceVersion" field

ClearClosedVolume
public void ClearClosedVolume()
protoOAClosePositionDetail.ClearClosedVolume()

Clears the value of the "closedVolume" field

ClearCommission
public void ClearCommission()
protoOAClosePositionDetail.ClearCommission()

Clears the value of the "commission" field

ClearEntryPrice
public void ClearEntryPrice()
protoOAClosePositionDetail.ClearEntryPrice()

Clears the value of the "entryPrice" field

ClearGrossProfit
public void ClearGrossProfit()
protoOAClosePositionDetail.ClearGrossProfit()

Clears the value of the "grossProfit" field

ClearMoneyDigits
public void ClearMoneyDigits()
protoOAClosePositionDetail.ClearMoneyDigits()

Clears the value of the "moneyDigits" field

ClearPnlConversionFee
public void ClearPnlConversionFee()
protoOAClosePositionDetail.ClearPnlConversionFee()

Clears the value of the "pnlConversionFee" field

ClearQuoteToDepositConversionRate
public void ClearQuoteToDepositConversionRate()
protoOAClosePositionDetail.ClearQuoteToDepositConversionRate()

Clears the value of the "quoteToDepositConversionRate" field

ClearSwap
public void ClearSwap()
protoOAClosePositionDetail.ClearSwap()

Clears the value of the "swap" field

Fields

BalanceFieldNumber
public const int BalanceFieldNumber
value = ProtoOAClosePositionDetail.BalanceFieldNumber

Field number for the "balance" field.

BalanceVersionFieldNumber
public const int BalanceVersionFieldNumber
value = ProtoOAClosePositionDetail.BalanceVersionFieldNumber

Field number for the "balanceVersion" field.

ClosedVolumeFieldNumber
public const int ClosedVolumeFieldNumber
value = ProtoOAClosePositionDetail.ClosedVolumeFieldNumber

Field number for the "closedVolume" field.

CommissionFieldNumber
public const int CommissionFieldNumber
value = ProtoOAClosePositionDetail.CommissionFieldNumber

Field number for the "commission" field.

EntryPriceFieldNumber
public const int EntryPriceFieldNumber
value = ProtoOAClosePositionDetail.EntryPriceFieldNumber

Field number for the "entryPrice" field.

GrossProfitFieldNumber
public const int GrossProfitFieldNumber
value = ProtoOAClosePositionDetail.GrossProfitFieldNumber

Field number for the "grossProfit" field.

MoneyDigitsFieldNumber
public const int MoneyDigitsFieldNumber
value = ProtoOAClosePositionDetail.MoneyDigitsFieldNumber

Field number for the "moneyDigits" field.

PnlConversionFeeFieldNumber
public const int PnlConversionFeeFieldNumber
value = ProtoOAClosePositionDetail.PnlConversionFeeFieldNumber

Field number for the "pnlConversionFee" field.

QuoteToDepositConversionRateFieldNumber
public const int QuoteToDepositConversionRateFieldNumber
value = ProtoOAClosePositionDetail.QuoteToDepositConversionRateFieldNumber

Field number for the "quoteToDepositConversionRate" field.

SwapFieldNumber
public const int SwapFieldNumber
value = ProtoOAClosePositionDetail.SwapFieldNumber

Field number for the "swap" field.