ProtoOADeal

StockSharp.cTrader.Native.Model

* Execution entity.

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

Properties

BaseToUsdConversionRate
public double BaseToUsdConversionRate { get; set; }
value = protoOADeal.BaseToUsdConversionRate
protoOADeal.BaseToUsdConversionRate = value

Base to USD conversion rate on the time of deal execution.

ClosePositionDetail
public ProtoOAClosePositionDetail ClosePositionDetail { get; set; }
value = protoOADeal.ClosePositionDetail
protoOADeal.ClosePositionDetail = value

Closing position detail. Valid only for closing deal.

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

Amount of trading commission associated with the deal.

CreateTimestamp
public long CreateTimestamp { get; set; }
value = protoOADeal.CreateTimestamp
protoOADeal.CreateTimestamp = value

The Unix time in milliseconds when the deal was sent for execution.

DealId
public long DealId { get; set; }
value = protoOADeal.DealId
protoOADeal.DealId = value

The unique ID of the execution deal.

DealStatus
public ProtoOADealStatus DealStatus { get; set; }
value = protoOADeal.DealStatus
protoOADeal.DealStatus = value

Status of the deal.

ExecutionPrice
public double ExecutionPrice { get; set; }
value = protoOADeal.ExecutionPrice
protoOADeal.ExecutionPrice = value

Execution price.

ExecutionTimestamp
public long ExecutionTimestamp { get; set; }
value = protoOADeal.ExecutionTimestamp
protoOADeal.ExecutionTimestamp = value

The Unix time in milliseconds when the deal was executed.

FilledVolume
public long FilledVolume { get; set; }
value = protoOADeal.FilledVolume
protoOADeal.FilledVolume = value

Filled volume, in cents.

HasBaseToUsdConversionRate
public bool HasBaseToUsdConversionRate { get; }
value = protoOADeal.HasBaseToUsdConversionRate

Gets whether the "baseToUsdConversionRate" field is set

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

Gets whether the "commission" field is set

HasCreateTimestamp
public bool HasCreateTimestamp { get; }
value = protoOADeal.HasCreateTimestamp

Gets whether the "createTimestamp" field is set

HasDealId
public bool HasDealId { get; }
value = protoOADeal.HasDealId

Gets whether the "dealId" field is set

HasDealStatus
public bool HasDealStatus { get; }
value = protoOADeal.HasDealStatus

Gets whether the "dealStatus" field is set

HasExecutionPrice
public bool HasExecutionPrice { get; }
value = protoOADeal.HasExecutionPrice

Gets whether the "executionPrice" field is set

HasExecutionTimestamp
public bool HasExecutionTimestamp { get; }
value = protoOADeal.HasExecutionTimestamp

Gets whether the "executionTimestamp" field is set

HasFilledVolume
public bool HasFilledVolume { get; }
value = protoOADeal.HasFilledVolume

Gets whether the "filledVolume" field is set

HasMarginRate
public bool HasMarginRate { get; }
value = protoOADeal.HasMarginRate

Gets whether the "marginRate" field is set

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

Gets whether the "moneyDigits" field is set

HasOrderId
public bool HasOrderId { get; }
value = protoOADeal.HasOrderId

Gets whether the "orderId" field is set

HasPositionId
public bool HasPositionId { get; }
value = protoOADeal.HasPositionId

Gets whether the "positionId" field is set

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

Gets whether the "symbolId" field is set

HasTradeSide
public bool HasTradeSide { get; }
value = protoOADeal.HasTradeSide

Gets whether the "tradeSide" field is set

HasUtcLastUpdateTimestamp
public bool HasUtcLastUpdateTimestamp { get; }
value = protoOADeal.HasUtcLastUpdateTimestamp

Gets whether the "utcLastUpdateTimestamp" field is set

HasVolume
public bool HasVolume { get; }
value = protoOADeal.HasVolume

Gets whether the "volume" field is set

MarginRate
public double MarginRate { get; set; }
value = protoOADeal.MarginRate
protoOADeal.MarginRate = value

Rate for used margin computation. Represented as Base/Deposit.

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

OrderId
public long OrderId { get; set; }
value = protoOADeal.OrderId
protoOADeal.OrderId = value

Source order of the deal.

PositionId
public long PositionId { get; set; }
value = protoOADeal.PositionId
protoOADeal.PositionId = value

Source position of the deal.

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

TradeSide
public ProtoOATradeSide TradeSide { get; set; }
value = protoOADeal.TradeSide
protoOADeal.TradeSide = value

Buy/Sell.

UtcLastUpdateTimestamp
public long UtcLastUpdateTimestamp { get; set; }
value = protoOADeal.UtcLastUpdateTimestamp
protoOADeal.UtcLastUpdateTimestamp = value

The Unix time in milliseconds when the deal was created, executed or rejected.

Volume
public long Volume { get; set; }
value = protoOADeal.Volume
protoOADeal.Volume = value

Volume sent for execution, in cents.

Methods

ClearBaseToUsdConversionRate
public void ClearBaseToUsdConversionRate()
protoOADeal.ClearBaseToUsdConversionRate()

Clears the value of the "baseToUsdConversionRate" field

ClearCommission
public void ClearCommission()
protoOADeal.ClearCommission()

Clears the value of the "commission" field

ClearCreateTimestamp
public void ClearCreateTimestamp()
protoOADeal.ClearCreateTimestamp()

Clears the value of the "createTimestamp" field

ClearDealId
public void ClearDealId()
protoOADeal.ClearDealId()

Clears the value of the "dealId" field

ClearDealStatus
public void ClearDealStatus()
protoOADeal.ClearDealStatus()

Clears the value of the "dealStatus" field

ClearExecutionPrice
public void ClearExecutionPrice()
protoOADeal.ClearExecutionPrice()

Clears the value of the "executionPrice" field

ClearExecutionTimestamp
public void ClearExecutionTimestamp()
protoOADeal.ClearExecutionTimestamp()

Clears the value of the "executionTimestamp" field

ClearFilledVolume
public void ClearFilledVolume()
protoOADeal.ClearFilledVolume()

Clears the value of the "filledVolume" field

ClearMarginRate
public void ClearMarginRate()
protoOADeal.ClearMarginRate()

Clears the value of the "marginRate" field

ClearMoneyDigits
public void ClearMoneyDigits()
protoOADeal.ClearMoneyDigits()

Clears the value of the "moneyDigits" field

ClearOrderId
public void ClearOrderId()
protoOADeal.ClearOrderId()

Clears the value of the "orderId" field

ClearPositionId
public void ClearPositionId()
protoOADeal.ClearPositionId()

Clears the value of the "positionId" field

ClearSymbolId
public void ClearSymbolId()
protoOADeal.ClearSymbolId()

Clears the value of the "symbolId" field

ClearTradeSide
public void ClearTradeSide()
protoOADeal.ClearTradeSide()

Clears the value of the "tradeSide" field

ClearUtcLastUpdateTimestamp
public void ClearUtcLastUpdateTimestamp()
protoOADeal.ClearUtcLastUpdateTimestamp()

Clears the value of the "utcLastUpdateTimestamp" field

ClearVolume
public void ClearVolume()
protoOADeal.ClearVolume()

Clears the value of the "volume" field

Fields

BaseToUsdConversionRateFieldNumber
public const int BaseToUsdConversionRateFieldNumber
value = ProtoOADeal.BaseToUsdConversionRateFieldNumber

Field number for the "baseToUsdConversionRate" field.

ClosePositionDetailFieldNumber
public const int ClosePositionDetailFieldNumber
value = ProtoOADeal.ClosePositionDetailFieldNumber

Field number for the "closePositionDetail" field.

CommissionFieldNumber
public const int CommissionFieldNumber
value = ProtoOADeal.CommissionFieldNumber

Field number for the "commission" field.

CreateTimestampFieldNumber
public const int CreateTimestampFieldNumber
value = ProtoOADeal.CreateTimestampFieldNumber

Field number for the "createTimestamp" field.

DealIdFieldNumber
public const int DealIdFieldNumber
value = ProtoOADeal.DealIdFieldNumber

Field number for the "dealId" field.

DealStatusFieldNumber
public const int DealStatusFieldNumber
value = ProtoOADeal.DealStatusFieldNumber

Field number for the "dealStatus" field.

ExecutionPriceFieldNumber
public const int ExecutionPriceFieldNumber
value = ProtoOADeal.ExecutionPriceFieldNumber

Field number for the "executionPrice" field.

ExecutionTimestampFieldNumber
public const int ExecutionTimestampFieldNumber
value = ProtoOADeal.ExecutionTimestampFieldNumber

Field number for the "executionTimestamp" field.

FilledVolumeFieldNumber
public const int FilledVolumeFieldNumber
value = ProtoOADeal.FilledVolumeFieldNumber

Field number for the "filledVolume" field.

MarginRateFieldNumber
public const int MarginRateFieldNumber
value = ProtoOADeal.MarginRateFieldNumber

Field number for the "marginRate" field.

MoneyDigitsFieldNumber
public const int MoneyDigitsFieldNumber
value = ProtoOADeal.MoneyDigitsFieldNumber

Field number for the "moneyDigits" field.

OrderIdFieldNumber
public const int OrderIdFieldNumber
value = ProtoOADeal.OrderIdFieldNumber

Field number for the "orderId" field.

PositionIdFieldNumber
public const int PositionIdFieldNumber
value = ProtoOADeal.PositionIdFieldNumber

Field number for the "positionId" field.

SymbolIdFieldNumber
public const int SymbolIdFieldNumber
value = ProtoOADeal.SymbolIdFieldNumber

Field number for the "symbolId" field.

TradeSideFieldNumber
public const int TradeSideFieldNumber
value = ProtoOADeal.TradeSideFieldNumber

Field number for the "tradeSide" field.

UtcLastUpdateTimestampFieldNumber
public const int UtcLastUpdateTimestampFieldNumber
value = ProtoOADeal.UtcLastUpdateTimestampFieldNumber

Field number for the "utcLastUpdateTimestamp" field.

VolumeFieldNumber
public const int VolumeFieldNumber
value = ProtoOADeal.VolumeFieldNumber

Field number for the "volume" field.