ProtoOAExecutionEvent

StockSharp.cTrader.Native.Model

* Event that is sent following the successful order acceptance or execution by the server. Acts as response to the ProtoOANewOrderReq, ProtoOACancelOrderReq, ProtoOAAmendOrderReq, ProtoOAAmendPositionSLTPReq, ProtoOAClosePositionReq requests. Also, the event is sent when a Deposit/Withdrawal took place.

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

Properties

BonusDepositWithdraw
public ProtoOABonusDepositWithdraw BonusDepositWithdraw { get; set; }
value = protoOAExecutionEvent.BonusDepositWithdraw
protoOAExecutionEvent.BonusDepositWithdraw = value

Reference to the Bonus Deposit or Withdrawal operation.

CtidTraderAccountId
public long CtidTraderAccountId { get; set; }
value = protoOAExecutionEvent.CtidTraderAccountId
protoOAExecutionEvent.CtidTraderAccountId = value

Unique identifier of the trader's account. Used to match responses to trader's accounts.

Deal
public ProtoOADeal Deal { get; set; }
value = protoOAExecutionEvent.Deal
protoOAExecutionEvent.Deal = value

Reference to the deal (execution).

DepositWithdraw
public ProtoOADepositWithdraw DepositWithdraw { get; set; }
value = protoOAExecutionEvent.DepositWithdraw
protoOAExecutionEvent.DepositWithdraw = value

Reference to the Deposit or Withdrawal operation.

ErrorCode
public string ErrorCode { get; set; }
value = protoOAExecutionEvent.ErrorCode
protoOAExecutionEvent.ErrorCode = value

The name of the ProtoErrorCode or the other custom ErrorCodes (e.g. ProtoCHErrorCode).

ExecutionType
public ProtoOAExecutionType ExecutionType { get; set; }
value = protoOAExecutionEvent.ExecutionType
protoOAExecutionEvent.ExecutionType = value

Type of the order operation. For example: ACCEPTED, FILLED, etc.

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

Gets whether the "ctidTraderAccountId" field is set

HasErrorCode
public bool HasErrorCode { get; }
value = protoOAExecutionEvent.HasErrorCode

Gets whether the "errorCode" field is set

HasExecutionType
public bool HasExecutionType { get; }
value = protoOAExecutionEvent.HasExecutionType

Gets whether the "executionType" field is set

HasIsServerEvent
public bool HasIsServerEvent { get; }
value = protoOAExecutionEvent.HasIsServerEvent

Gets whether the "isServerEvent" field is set

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

Gets whether the "payloadType" field is set

IsServerEvent
public bool IsServerEvent { get; set; }
value = protoOAExecutionEvent.IsServerEvent
protoOAExecutionEvent.IsServerEvent = value

If TRUE then the event generated by the server logic instead of the trader's request. (e.g. stop-out).

Order
public ProtoOAOrder Order { get; set; }
value = protoOAExecutionEvent.Order
protoOAExecutionEvent.Order = value

Reference to the initial order.

Position
public ProtoOAPosition Position { get; set; }
value = protoOAExecutionEvent.Position
protoOAExecutionEvent.Position = value

Reference to the position linked with the execution

Methods

ClearCtidTraderAccountId
public void ClearCtidTraderAccountId()
protoOAExecutionEvent.ClearCtidTraderAccountId()

Clears the value of the "ctidTraderAccountId" field

ClearErrorCode
public void ClearErrorCode()
protoOAExecutionEvent.ClearErrorCode()

Clears the value of the "errorCode" field

ClearExecutionType
public void ClearExecutionType()
protoOAExecutionEvent.ClearExecutionType()

Clears the value of the "executionType" field

ClearIsServerEvent
public void ClearIsServerEvent()
protoOAExecutionEvent.ClearIsServerEvent()

Clears the value of the "isServerEvent" field

ClearPayloadType
public void ClearPayloadType()
protoOAExecutionEvent.ClearPayloadType()

Clears the value of the "payloadType" field

Fields

BonusDepositWithdrawFieldNumber
public const int BonusDepositWithdrawFieldNumber
value = ProtoOAExecutionEvent.BonusDepositWithdrawFieldNumber

Field number for the "bonusDepositWithdraw" field.

CtidTraderAccountIdFieldNumber
public const int CtidTraderAccountIdFieldNumber
value = ProtoOAExecutionEvent.CtidTraderAccountIdFieldNumber

Field number for the "ctidTraderAccountId" field.

DealFieldNumber
public const int DealFieldNumber
value = ProtoOAExecutionEvent.DealFieldNumber

Field number for the "deal" field.

DepositWithdrawFieldNumber
public const int DepositWithdrawFieldNumber
value = ProtoOAExecutionEvent.DepositWithdrawFieldNumber

Field number for the "depositWithdraw" field.

ErrorCodeFieldNumber
public const int ErrorCodeFieldNumber
value = ProtoOAExecutionEvent.ErrorCodeFieldNumber

Field number for the "errorCode" field.

ExecutionTypeFieldNumber
public const int ExecutionTypeFieldNumber
value = ProtoOAExecutionEvent.ExecutionTypeFieldNumber

Field number for the "executionType" field.

IsServerEventFieldNumber
public const int IsServerEventFieldNumber
value = ProtoOAExecutionEvent.IsServerEventFieldNumber

Field number for the "isServerEvent" field.

OrderFieldNumber
public const int OrderFieldNumber
value = ProtoOAExecutionEvent.OrderFieldNumber

Field number for the "order" field.

PayloadTypeFieldNumber
public const int PayloadTypeFieldNumber
value = ProtoOAExecutionEvent.PayloadTypeFieldNumber

Field number for the "payloadType" field.

PositionFieldNumber
public const int PositionFieldNumber
value = ProtoOAExecutionEvent.PositionFieldNumber

Field number for the "position" field.