ProtoOADeal
* Execution entity.
Implements: IMessage<ProtoOADeal>, IMessage, IEquatable<ProtoOADeal>, IDeepCloneable<ProtoOADeal>, IBufferMessage
Properties
public double BaseToUsdConversionRate { get; set; }
value = protoOADeal.BaseToUsdConversionRate
protoOADeal.BaseToUsdConversionRate = value
Base to USD conversion rate on the time of deal execution.
public ProtoOAClosePositionDetail ClosePositionDetail { get; set; }
value = protoOADeal.ClosePositionDetail
protoOADeal.ClosePositionDetail = value
Closing position detail. Valid only for closing deal.
public long Commission { get; set; }
value = protoOADeal.Commission
protoOADeal.Commission = value
Amount of trading commission associated with the deal.
public long CreateTimestamp { get; set; }
value = protoOADeal.CreateTimestamp
protoOADeal.CreateTimestamp = value
The Unix time in milliseconds when the deal was sent for execution.
public long DealId { get; set; }
value = protoOADeal.DealId
protoOADeal.DealId = value
The unique ID of the execution deal.
public ProtoOADealStatus DealStatus { get; set; }
value = protoOADeal.DealStatus
protoOADeal.DealStatus = value
Status of the deal.
public double ExecutionPrice { get; set; }
value = protoOADeal.ExecutionPrice
protoOADeal.ExecutionPrice = value
Execution price.
public long ExecutionTimestamp { get; set; }
value = protoOADeal.ExecutionTimestamp
protoOADeal.ExecutionTimestamp = value
The Unix time in milliseconds when the deal was executed.
public long FilledVolume { get; set; }
value = protoOADeal.FilledVolume
protoOADeal.FilledVolume = value
Filled volume, in cents.
public bool HasBaseToUsdConversionRate { get; }
value = protoOADeal.HasBaseToUsdConversionRate
Gets whether the "baseToUsdConversionRate" field is set
public bool HasCommission { get; }
value = protoOADeal.HasCommission
Gets whether the "commission" field is set
public bool HasCreateTimestamp { get; }
value = protoOADeal.HasCreateTimestamp
Gets whether the "createTimestamp" field is set
public bool HasDealId { get; }
value = protoOADeal.HasDealId
Gets whether the "dealId" field is set
public bool HasDealStatus { get; }
value = protoOADeal.HasDealStatus
Gets whether the "dealStatus" field is set
public bool HasExecutionPrice { get; }
value = protoOADeal.HasExecutionPrice
Gets whether the "executionPrice" field is set
public bool HasExecutionTimestamp { get; }
value = protoOADeal.HasExecutionTimestamp
Gets whether the "executionTimestamp" field is set
public bool HasFilledVolume { get; }
value = protoOADeal.HasFilledVolume
Gets whether the "filledVolume" field is set
public bool HasMarginRate { get; }
value = protoOADeal.HasMarginRate
Gets whether the "marginRate" field is set
public bool HasMoneyDigits { get; }
value = protoOADeal.HasMoneyDigits
Gets whether the "moneyDigits" field is set
public bool HasOrderId { get; }
value = protoOADeal.HasOrderId
Gets whether the "orderId" field is set
public bool HasPositionId { get; }
value = protoOADeal.HasPositionId
Gets whether the "positionId" field is set
public bool HasSymbolId { get; }
value = protoOADeal.HasSymbolId
Gets whether the "symbolId" field is set
public bool HasTradeSide { get; }
value = protoOADeal.HasTradeSide
Gets whether the "tradeSide" field is set
public bool HasUtcLastUpdateTimestamp { get; }
value = protoOADeal.HasUtcLastUpdateTimestamp
Gets whether the "utcLastUpdateTimestamp" field is set
public bool HasVolume { get; }
value = protoOADeal.HasVolume
Gets whether the "volume" field is set
public double MarginRate { get; set; }
value = protoOADeal.MarginRate
protoOADeal.MarginRate = value
Rate for used margin computation. Represented as Base/Deposit.
public uint MoneyDigits { get; set; }
value = protoOADeal.MoneyDigits
protoOADeal.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 commission.
public long OrderId { get; set; }
value = protoOADeal.OrderId
protoOADeal.OrderId = value
Source order of the deal.
public long PositionId { get; set; }
value = protoOADeal.PositionId
protoOADeal.PositionId = value
Source position of the deal.
public long SymbolId { get; set; }
value = protoOADeal.SymbolId
protoOADeal.SymbolId = value
The unique identifier of the symbol in specific server environment within cTrader platform. Different servers have different IDs.
public ProtoOATradeSide TradeSide { get; set; }
value = protoOADeal.TradeSide
protoOADeal.TradeSide = value
Buy/Sell.
public long UtcLastUpdateTimestamp { get; set; }
value = protoOADeal.UtcLastUpdateTimestamp
protoOADeal.UtcLastUpdateTimestamp = value
The Unix time in milliseconds when the deal was created, executed or rejected.
public long Volume { get; set; }
value = protoOADeal.Volume
protoOADeal.Volume = value
Volume sent for execution, in cents.
Methods
public void ClearBaseToUsdConversionRate()
protoOADeal.ClearBaseToUsdConversionRate()
Clears the value of the "baseToUsdConversionRate" field
public void ClearCommission()
protoOADeal.ClearCommission()
Clears the value of the "commission" field
public void ClearCreateTimestamp()
protoOADeal.ClearCreateTimestamp()
Clears the value of the "createTimestamp" field
public void ClearDealId()
protoOADeal.ClearDealId()
Clears the value of the "dealId" field
public void ClearDealStatus()
protoOADeal.ClearDealStatus()
Clears the value of the "dealStatus" field
public void ClearExecutionPrice()
protoOADeal.ClearExecutionPrice()
Clears the value of the "executionPrice" field
public void ClearExecutionTimestamp()
protoOADeal.ClearExecutionTimestamp()
Clears the value of the "executionTimestamp" field
public void ClearFilledVolume()
protoOADeal.ClearFilledVolume()
Clears the value of the "filledVolume" field
public void ClearMarginRate()
protoOADeal.ClearMarginRate()
Clears the value of the "marginRate" field
public void ClearMoneyDigits()
protoOADeal.ClearMoneyDigits()
Clears the value of the "moneyDigits" field
public void ClearOrderId()
protoOADeal.ClearOrderId()
Clears the value of the "orderId" field
public void ClearPositionId()
protoOADeal.ClearPositionId()
Clears the value of the "positionId" field
public void ClearSymbolId()
protoOADeal.ClearSymbolId()
Clears the value of the "symbolId" field
public void ClearTradeSide()
protoOADeal.ClearTradeSide()
Clears the value of the "tradeSide" field
public void ClearUtcLastUpdateTimestamp()
protoOADeal.ClearUtcLastUpdateTimestamp()
Clears the value of the "utcLastUpdateTimestamp" field
public void ClearVolume()
protoOADeal.ClearVolume()
Clears the value of the "volume" field
Fields
public const int BaseToUsdConversionRateFieldNumber
value = ProtoOADeal.BaseToUsdConversionRateFieldNumber
Field number for the "baseToUsdConversionRate" field.
public const int ClosePositionDetailFieldNumber
value = ProtoOADeal.ClosePositionDetailFieldNumber
Field number for the "closePositionDetail" field.
public const int CommissionFieldNumber
value = ProtoOADeal.CommissionFieldNumber
Field number for the "commission" field.
public const int CreateTimestampFieldNumber
value = ProtoOADeal.CreateTimestampFieldNumber
Field number for the "createTimestamp" field.
public const int DealIdFieldNumber
value = ProtoOADeal.DealIdFieldNumber
Field number for the "dealId" field.
public const int DealStatusFieldNumber
value = ProtoOADeal.DealStatusFieldNumber
Field number for the "dealStatus" field.
public const int ExecutionPriceFieldNumber
value = ProtoOADeal.ExecutionPriceFieldNumber
Field number for the "executionPrice" field.
public const int ExecutionTimestampFieldNumber
value = ProtoOADeal.ExecutionTimestampFieldNumber
Field number for the "executionTimestamp" field.
public const int FilledVolumeFieldNumber
value = ProtoOADeal.FilledVolumeFieldNumber
Field number for the "filledVolume" field.
public const int MarginRateFieldNumber
value = ProtoOADeal.MarginRateFieldNumber
Field number for the "marginRate" field.
public const int MoneyDigitsFieldNumber
value = ProtoOADeal.MoneyDigitsFieldNumber
Field number for the "moneyDigits" field.
public const int OrderIdFieldNumber
value = ProtoOADeal.OrderIdFieldNumber
Field number for the "orderId" field.
public const int PositionIdFieldNumber
value = ProtoOADeal.PositionIdFieldNumber
Field number for the "positionId" field.
public const int SymbolIdFieldNumber
value = ProtoOADeal.SymbolIdFieldNumber
Field number for the "symbolId" field.
public const int TradeSideFieldNumber
value = ProtoOADeal.TradeSideFieldNumber
Field number for the "tradeSide" field.
public const int UtcLastUpdateTimestampFieldNumber
value = ProtoOADeal.UtcLastUpdateTimestampFieldNumber
Field number for the "utcLastUpdateTimestamp" field.
public const int VolumeFieldNumber
value = ProtoOADeal.VolumeFieldNumber
Field number for the "volume" field.