ProtoOAExecutionEvent
* 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
public ProtoOABonusDepositWithdraw BonusDepositWithdraw { get; set; }
value = protoOAExecutionEvent.BonusDepositWithdraw
protoOAExecutionEvent.BonusDepositWithdraw = value
Reference to the Bonus Deposit or Withdrawal operation.
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.
public ProtoOADeal Deal { get; set; }
value = protoOAExecutionEvent.Deal
protoOAExecutionEvent.Deal = value
Reference to the deal (execution).
public ProtoOADepositWithdraw DepositWithdraw { get; set; }
value = protoOAExecutionEvent.DepositWithdraw
protoOAExecutionEvent.DepositWithdraw = value
Reference to the Deposit or Withdrawal operation.
public string ErrorCode { get; set; }
value = protoOAExecutionEvent.ErrorCode
protoOAExecutionEvent.ErrorCode = value
The name of the ProtoErrorCode or the other custom ErrorCodes (e.g. ProtoCHErrorCode).
public ProtoOAExecutionType ExecutionType { get; set; }
value = protoOAExecutionEvent.ExecutionType
protoOAExecutionEvent.ExecutionType = value
Type of the order operation. For example: ACCEPTED, FILLED, etc.
public bool HasCtidTraderAccountId { get; }
value = protoOAExecutionEvent.HasCtidTraderAccountId
Gets whether the "ctidTraderAccountId" field is set
public bool HasErrorCode { get; }
value = protoOAExecutionEvent.HasErrorCode
Gets whether the "errorCode" field is set
public bool HasExecutionType { get; }
value = protoOAExecutionEvent.HasExecutionType
Gets whether the "executionType" field is set
public bool HasIsServerEvent { get; }
value = protoOAExecutionEvent.HasIsServerEvent
Gets whether the "isServerEvent" field is set
public bool HasPayloadType { get; }
value = protoOAExecutionEvent.HasPayloadType
Gets whether the "payloadType" field is set
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).
public ProtoOAOrder Order { get; set; }
value = protoOAExecutionEvent.Order
protoOAExecutionEvent.Order = value
Reference to the initial order.
public ProtoOAPosition Position { get; set; }
value = protoOAExecutionEvent.Position
protoOAExecutionEvent.Position = value
Reference to the position linked with the execution
Methods
public void ClearCtidTraderAccountId()
protoOAExecutionEvent.ClearCtidTraderAccountId()
Clears the value of the "ctidTraderAccountId" field
public void ClearErrorCode()
protoOAExecutionEvent.ClearErrorCode()
Clears the value of the "errorCode" field
public void ClearExecutionType()
protoOAExecutionEvent.ClearExecutionType()
Clears the value of the "executionType" field
public void ClearIsServerEvent()
protoOAExecutionEvent.ClearIsServerEvent()
Clears the value of the "isServerEvent" field
public void ClearPayloadType()
protoOAExecutionEvent.ClearPayloadType()
Clears the value of the "payloadType" field
Fields
public const int BonusDepositWithdrawFieldNumber
value = ProtoOAExecutionEvent.BonusDepositWithdrawFieldNumber
Field number for the "bonusDepositWithdraw" field.
public const int CtidTraderAccountIdFieldNumber
value = ProtoOAExecutionEvent.CtidTraderAccountIdFieldNumber
Field number for the "ctidTraderAccountId" field.
public const int DealFieldNumber
value = ProtoOAExecutionEvent.DealFieldNumber
Field number for the "deal" field.
public const int DepositWithdrawFieldNumber
value = ProtoOAExecutionEvent.DepositWithdrawFieldNumber
Field number for the "depositWithdraw" field.
public const int ErrorCodeFieldNumber
value = ProtoOAExecutionEvent.ErrorCodeFieldNumber
Field number for the "errorCode" field.
public const int ExecutionTypeFieldNumber
value = ProtoOAExecutionEvent.ExecutionTypeFieldNumber
Field number for the "executionType" field.
public const int IsServerEventFieldNumber
value = ProtoOAExecutionEvent.IsServerEventFieldNumber
Field number for the "isServerEvent" field.
public const int OrderFieldNumber
value = ProtoOAExecutionEvent.OrderFieldNumber
Field number for the "order" field.
public const int PayloadTypeFieldNumber
value = ProtoOAExecutionEvent.PayloadTypeFieldNumber
Field number for the "payloadType" field.
public const int PositionFieldNumber
value = ProtoOAExecutionEvent.PositionFieldNumber
Field number for the "position" field.