ProtoOAClosePositionDetail
* Trading details for closing deal.
Implements: IMessage<ProtoOAClosePositionDetail>, IMessage, IEquatable<ProtoOAClosePositionDetail>, IDeepCloneable<ProtoOAClosePositionDetail>, IBufferMessage
Properties
public long Balance { get; set; }
value = protoOAClosePositionDetail.Balance
protoOAClosePositionDetail.Balance = value
Account balance after closing deal execution.
public long BalanceVersion { get; set; }
value = protoOAClosePositionDetail.BalanceVersion
protoOAClosePositionDetail.BalanceVersion = value
Balance version of the account related to closing deal operation.
public long ClosedVolume { get; set; }
value = protoOAClosePositionDetail.ClosedVolume
protoOAClosePositionDetail.ClosedVolume = value
Closed volume in cents.
public long Commission { get; set; }
value = protoOAClosePositionDetail.Commission
protoOAClosePositionDetail.Commission = value
Amount of realized commission related to closed volume.
public double EntryPrice { get; set; }
value = protoOAClosePositionDetail.EntryPrice
protoOAClosePositionDetail.EntryPrice = value
Position price at the moment of filling the closing order.
public long GrossProfit { get; set; }
value = protoOAClosePositionDetail.GrossProfit
protoOAClosePositionDetail.GrossProfit = value
Amount of realized gross profit after closing deal execution.
public bool HasBalance { get; }
value = protoOAClosePositionDetail.HasBalance
Gets whether the "balance" field is set
public bool HasBalanceVersion { get; }
value = protoOAClosePositionDetail.HasBalanceVersion
Gets whether the "balanceVersion" field is set
public bool HasClosedVolume { get; }
value = protoOAClosePositionDetail.HasClosedVolume
Gets whether the "closedVolume" field is set
public bool HasCommission { get; }
value = protoOAClosePositionDetail.HasCommission
Gets whether the "commission" field is set
public bool HasEntryPrice { get; }
value = protoOAClosePositionDetail.HasEntryPrice
Gets whether the "entryPrice" field is set
public bool HasGrossProfit { get; }
value = protoOAClosePositionDetail.HasGrossProfit
Gets whether the "grossProfit" field is set
public bool HasMoneyDigits { get; }
value = protoOAClosePositionDetail.HasMoneyDigits
Gets whether the "moneyDigits" field is set
public bool HasPnlConversionFee { get; }
value = protoOAClosePositionDetail.HasPnlConversionFee
Gets whether the "pnlConversionFee" field is set
public bool HasQuoteToDepositConversionRate { get; }
value = protoOAClosePositionDetail.HasQuoteToDepositConversionRate
Gets whether the "quoteToDepositConversionRate" field is set
public bool HasSwap { get; }
value = protoOAClosePositionDetail.HasSwap
Gets whether the "swap" field is set
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.
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.
public double QuoteToDepositConversionRate { get; set; }
value = protoOAClosePositionDetail.QuoteToDepositConversionRate
protoOAClosePositionDetail.QuoteToDepositConversionRate = value
Quote/Deposit currency conversion rate on the time of closing deal execution.
public long Swap { get; set; }
value = protoOAClosePositionDetail.Swap
protoOAClosePositionDetail.Swap = value
Amount of realized swap related to closed volume.
Methods
public void ClearBalance()
protoOAClosePositionDetail.ClearBalance()
Clears the value of the "balance" field
public void ClearBalanceVersion()
protoOAClosePositionDetail.ClearBalanceVersion()
Clears the value of the "balanceVersion" field
public void ClearClosedVolume()
protoOAClosePositionDetail.ClearClosedVolume()
Clears the value of the "closedVolume" field
public void ClearCommission()
protoOAClosePositionDetail.ClearCommission()
Clears the value of the "commission" field
public void ClearEntryPrice()
protoOAClosePositionDetail.ClearEntryPrice()
Clears the value of the "entryPrice" field
public void ClearGrossProfit()
protoOAClosePositionDetail.ClearGrossProfit()
Clears the value of the "grossProfit" field
public void ClearMoneyDigits()
protoOAClosePositionDetail.ClearMoneyDigits()
Clears the value of the "moneyDigits" field
public void ClearPnlConversionFee()
protoOAClosePositionDetail.ClearPnlConversionFee()
Clears the value of the "pnlConversionFee" field
public void ClearQuoteToDepositConversionRate()
protoOAClosePositionDetail.ClearQuoteToDepositConversionRate()
Clears the value of the "quoteToDepositConversionRate" field
public void ClearSwap()
protoOAClosePositionDetail.ClearSwap()
Clears the value of the "swap" field
Fields
public const int BalanceFieldNumber
value = ProtoOAClosePositionDetail.BalanceFieldNumber
Field number for the "balance" field.
public const int BalanceVersionFieldNumber
value = ProtoOAClosePositionDetail.BalanceVersionFieldNumber
Field number for the "balanceVersion" field.
public const int ClosedVolumeFieldNumber
value = ProtoOAClosePositionDetail.ClosedVolumeFieldNumber
Field number for the "closedVolume" field.
public const int CommissionFieldNumber
value = ProtoOAClosePositionDetail.CommissionFieldNumber
Field number for the "commission" field.
public const int EntryPriceFieldNumber
value = ProtoOAClosePositionDetail.EntryPriceFieldNumber
Field number for the "entryPrice" field.
public const int GrossProfitFieldNumber
value = ProtoOAClosePositionDetail.GrossProfitFieldNumber
Field number for the "grossProfit" field.
public const int MoneyDigitsFieldNumber
value = ProtoOAClosePositionDetail.MoneyDigitsFieldNumber
Field number for the "moneyDigits" field.
public const int PnlConversionFeeFieldNumber
value = ProtoOAClosePositionDetail.PnlConversionFeeFieldNumber
Field number for the "pnlConversionFee" field.
public const int QuoteToDepositConversionRateFieldNumber
value = ProtoOAClosePositionDetail.QuoteToDepositConversionRateFieldNumber
Field number for the "quoteToDepositConversionRate" field.
public const int SwapFieldNumber
value = ProtoOAClosePositionDetail.SwapFieldNumber
Field number for the "swap" field.