ProtoOAOrder
* Trade order entity.
Implements: IMessage<ProtoOAOrder>, IMessage, IEquatable<ProtoOAOrder>, IDeepCloneable<ProtoOAOrder>, IBufferMessage
Properties
public double BaseSlippagePrice { get; set; }
value = protoOAOrder.BaseSlippagePrice
protoOAOrder.BaseSlippagePrice = value
Used for Market Range order with combination of slippageInPoints to specify price range were order can be executed.
public string ClientOrderId { get; set; }
value = protoOAOrder.ClientOrderId
protoOAOrder.ClientOrderId = value
Optional ClientOrderId. Max Length = 50 chars.
public bool ClosingOrder { get; set; }
value = protoOAOrder.ClosingOrder
protoOAOrder.ClosingOrder = value
If TRUE then the order is closing part of whole position. Must have specified positionId.
public long ExecutedVolume { get; set; }
value = protoOAOrder.ExecutedVolume
protoOAOrder.ExecutedVolume = value
Part of the volume that was filled.
public double ExecutionPrice { get; set; }
value = protoOAOrder.ExecutionPrice
protoOAOrder.ExecutionPrice = value
Price at which an order was executed. For order with FILLED status.
public long ExpirationTimestamp { get; set; }
value = protoOAOrder.ExpirationTimestamp
protoOAOrder.ExpirationTimestamp = value
The Unix time in milliseconds of expiration if the order has time in force GTD.
public bool HasBaseSlippagePrice { get; }
value = protoOAOrder.HasBaseSlippagePrice
Gets whether the "baseSlippagePrice" field is set
public bool HasClientOrderId { get; }
value = protoOAOrder.HasClientOrderId
Gets whether the "clientOrderId" field is set
public bool HasClosingOrder { get; }
value = protoOAOrder.HasClosingOrder
Gets whether the "closingOrder" field is set
public bool HasExecutedVolume { get; }
value = protoOAOrder.HasExecutedVolume
Gets whether the "executedVolume" field is set
public bool HasExecutionPrice { get; }
value = protoOAOrder.HasExecutionPrice
Gets whether the "executionPrice" field is set
public bool HasExpirationTimestamp { get; }
value = protoOAOrder.HasExpirationTimestamp
Gets whether the "expirationTimestamp" field is set
public bool HasIsStopOut { get; }
value = protoOAOrder.HasIsStopOut
Gets whether the "isStopOut" field is set
public bool HasLimitPrice { get; }
value = protoOAOrder.HasLimitPrice
Gets whether the "limitPrice" field is set
public bool HasOrderId { get; }
value = protoOAOrder.HasOrderId
Gets whether the "orderId" field is set
public bool HasOrderStatus { get; }
value = protoOAOrder.HasOrderStatus
Gets whether the "orderStatus" field is set
public bool HasOrderType { get; }
value = protoOAOrder.HasOrderType
Gets whether the "orderType" field is set
public bool HasPositionId { get; }
value = protoOAOrder.HasPositionId
Gets whether the "positionId" field is set
public bool HasRelativeStopLoss { get; }
value = protoOAOrder.HasRelativeStopLoss
Gets whether the "relativeStopLoss" field is set
public bool HasRelativeTakeProfit { get; }
value = protoOAOrder.HasRelativeTakeProfit
Gets whether the "relativeTakeProfit" field is set
public bool HasSlippageInPoints { get; }
value = protoOAOrder.HasSlippageInPoints
Gets whether the "slippageInPoints" field is set
public bool HasStopLoss { get; }
value = protoOAOrder.HasStopLoss
Gets whether the "stopLoss" field is set
public bool HasStopPrice { get; }
value = protoOAOrder.HasStopPrice
Gets whether the "stopPrice" field is set
public bool HasStopTriggerMethod { get; }
value = protoOAOrder.HasStopTriggerMethod
Gets whether the "stopTriggerMethod" field is set
public bool HasTakeProfit { get; }
value = protoOAOrder.HasTakeProfit
Gets whether the "takeProfit" field is set
public bool HasTimeInForce { get; }
value = protoOAOrder.HasTimeInForce
Gets whether the "timeInForce" field is set
public bool HasTrailingStopLoss { get; }
value = protoOAOrder.HasTrailingStopLoss
Gets whether the "trailingStopLoss" field is set
public bool HasUtcLastUpdateTimestamp { get; }
value = protoOAOrder.HasUtcLastUpdateTimestamp
Gets whether the "utcLastUpdateTimestamp" field is set
public bool IsStopOut { get; set; }
value = protoOAOrder.IsStopOut
protoOAOrder.IsStopOut = value
If TRUE then order was stopped out from server side.
public double LimitPrice { get; set; }
value = protoOAOrder.LimitPrice
protoOAOrder.LimitPrice = value
Valid only for LIMIT orders.
public long OrderId { get; set; }
value = protoOAOrder.OrderId
protoOAOrder.OrderId = value
The unique ID of the order. Note: trader might have two orders with the same id if orders are taken from accounts from different brokers.
public ProtoOAOrderStatus OrderStatus { get; set; }
value = protoOAOrder.OrderStatus
protoOAOrder.OrderStatus = value
Order status.
public ProtoOAOrderType OrderType { get; set; }
value = protoOAOrder.OrderType
protoOAOrder.OrderType = value
Order type.
public long PositionId { get; set; }
value = protoOAOrder.PositionId
protoOAOrder.PositionId = value
ID of the position linked to the order (e.g. closing order, order that increase volume of a specific position, etc.).
public long RelativeStopLoss { get; set; }
value = protoOAOrder.RelativeStopLoss
protoOAOrder.RelativeStopLoss = value
Relative stopLoss that can be specified instead of absolute as one. Specified in 1/100_000 of unit of a price. For BUY stopLoss = entryPrice - relativeStopLoss, for SELL stopLoss = entryPrice + relativeStopLoss.
public long RelativeTakeProfit { get; set; }
value = protoOAOrder.RelativeTakeProfit
protoOAOrder.RelativeTakeProfit = value
Relative takeProfit that can be specified instead of absolute one. Specified in 1/100_000 of unit of a price. ForBUY takeProfit = entryPrice + relativeTakeProfit, for SELL takeProfit = entryPrice - relativeTakeProfit.
public long SlippageInPoints { get; set; }
value = protoOAOrder.SlippageInPoints
protoOAOrder.SlippageInPoints = value
Used for Market Range and STOP_LIMIT orders to to specify price range were order can be executed.
public double StopLoss { get; set; }
value = protoOAOrder.StopLoss
protoOAOrder.StopLoss = value
Absolute stopLoss price.
public double StopPrice { get; set; }
value = protoOAOrder.StopPrice
protoOAOrder.StopPrice = value
Valid only for STOP and STOP_LIMIT orders.
public ProtoOAOrderTriggerMethod StopTriggerMethod { get; set; }
value = protoOAOrder.StopTriggerMethod
protoOAOrder.StopTriggerMethod = value
Trigger method for the order. Valid only for STOP and STOP_LIMIT orders.
public double TakeProfit { get; set; }
value = protoOAOrder.TakeProfit
protoOAOrder.TakeProfit = value
Absolute takeProfit price.
public ProtoOATimeInForce TimeInForce { get; set; }
value = protoOAOrder.TimeInForce
protoOAOrder.TimeInForce = value
Order's time in force. Depends on order type.
public ProtoOATradeData TradeData { get; set; }
value = protoOAOrder.TradeData
protoOAOrder.TradeData = value
Detailed trader data.
public bool TrailingStopLoss { get; set; }
value = protoOAOrder.TrailingStopLoss
protoOAOrder.TrailingStopLoss = value
If TRUE then order is trailingStopLoss. Valid for STOP_LOSS_TAKE_PROFIT order.
public long UtcLastUpdateTimestamp { get; set; }
value = protoOAOrder.UtcLastUpdateTimestamp
protoOAOrder.UtcLastUpdateTimestamp = value
The Unix time in milliseconds of the last update of the order.
Methods
public void ClearBaseSlippagePrice()
protoOAOrder.ClearBaseSlippagePrice()
Clears the value of the "baseSlippagePrice" field
public void ClearClientOrderId()
protoOAOrder.ClearClientOrderId()
Clears the value of the "clientOrderId" field
public void ClearClosingOrder()
protoOAOrder.ClearClosingOrder()
Clears the value of the "closingOrder" field
public void ClearExecutedVolume()
protoOAOrder.ClearExecutedVolume()
Clears the value of the "executedVolume" field
public void ClearExecutionPrice()
protoOAOrder.ClearExecutionPrice()
Clears the value of the "executionPrice" field
public void ClearExpirationTimestamp()
protoOAOrder.ClearExpirationTimestamp()
Clears the value of the "expirationTimestamp" field
public void ClearIsStopOut()
protoOAOrder.ClearIsStopOut()
Clears the value of the "isStopOut" field
public void ClearLimitPrice()
protoOAOrder.ClearLimitPrice()
Clears the value of the "limitPrice" field
public void ClearOrderId()
protoOAOrder.ClearOrderId()
Clears the value of the "orderId" field
public void ClearOrderStatus()
protoOAOrder.ClearOrderStatus()
Clears the value of the "orderStatus" field
public void ClearOrderType()
protoOAOrder.ClearOrderType()
Clears the value of the "orderType" field
public void ClearPositionId()
protoOAOrder.ClearPositionId()
Clears the value of the "positionId" field
public void ClearRelativeStopLoss()
protoOAOrder.ClearRelativeStopLoss()
Clears the value of the "relativeStopLoss" field
public void ClearRelativeTakeProfit()
protoOAOrder.ClearRelativeTakeProfit()
Clears the value of the "relativeTakeProfit" field
public void ClearSlippageInPoints()
protoOAOrder.ClearSlippageInPoints()
Clears the value of the "slippageInPoints" field
public void ClearStopLoss()
protoOAOrder.ClearStopLoss()
Clears the value of the "stopLoss" field
public void ClearStopPrice()
protoOAOrder.ClearStopPrice()
Clears the value of the "stopPrice" field
public void ClearStopTriggerMethod()
protoOAOrder.ClearStopTriggerMethod()
Clears the value of the "stopTriggerMethod" field
public void ClearTakeProfit()
protoOAOrder.ClearTakeProfit()
Clears the value of the "takeProfit" field
public void ClearTimeInForce()
protoOAOrder.ClearTimeInForce()
Clears the value of the "timeInForce" field
public void ClearTrailingStopLoss()
protoOAOrder.ClearTrailingStopLoss()
Clears the value of the "trailingStopLoss" field
public void ClearUtcLastUpdateTimestamp()
protoOAOrder.ClearUtcLastUpdateTimestamp()
Clears the value of the "utcLastUpdateTimestamp" field
Fields
public const int BaseSlippagePriceFieldNumber
value = ProtoOAOrder.BaseSlippagePriceFieldNumber
Field number for the "baseSlippagePrice" field.
public const int ClientOrderIdFieldNumber
value = ProtoOAOrder.ClientOrderIdFieldNumber
Field number for the "clientOrderId" field.
public const int ClosingOrderFieldNumber
value = ProtoOAOrder.ClosingOrderFieldNumber
Field number for the "closingOrder" field.
public const int ExecutedVolumeFieldNumber
value = ProtoOAOrder.ExecutedVolumeFieldNumber
Field number for the "executedVolume" field.
public const int ExecutionPriceFieldNumber
value = ProtoOAOrder.ExecutionPriceFieldNumber
Field number for the "executionPrice" field.
public const int ExpirationTimestampFieldNumber
value = ProtoOAOrder.ExpirationTimestampFieldNumber
Field number for the "expirationTimestamp" field.
public const int IsStopOutFieldNumber
value = ProtoOAOrder.IsStopOutFieldNumber
Field number for the "isStopOut" field.
public const int LimitPriceFieldNumber
value = ProtoOAOrder.LimitPriceFieldNumber
Field number for the "limitPrice" field.
public const int OrderIdFieldNumber
value = ProtoOAOrder.OrderIdFieldNumber
Field number for the "orderId" field.
public const int OrderStatusFieldNumber
value = ProtoOAOrder.OrderStatusFieldNumber
Field number for the "orderStatus" field.
public const int OrderTypeFieldNumber
value = ProtoOAOrder.OrderTypeFieldNumber
Field number for the "orderType" field.
public const int PositionIdFieldNumber
value = ProtoOAOrder.PositionIdFieldNumber
Field number for the "positionId" field.
public const int RelativeStopLossFieldNumber
value = ProtoOAOrder.RelativeStopLossFieldNumber
Field number for the "relativeStopLoss" field.
public const int RelativeTakeProfitFieldNumber
value = ProtoOAOrder.RelativeTakeProfitFieldNumber
Field number for the "relativeTakeProfit" field.
public const int SlippageInPointsFieldNumber
value = ProtoOAOrder.SlippageInPointsFieldNumber
Field number for the "slippageInPoints" field.
public const int StopLossFieldNumber
value = ProtoOAOrder.StopLossFieldNumber
Field number for the "stopLoss" field.
public const int StopPriceFieldNumber
value = ProtoOAOrder.StopPriceFieldNumber
Field number for the "stopPrice" field.
public const int StopTriggerMethodFieldNumber
value = ProtoOAOrder.StopTriggerMethodFieldNumber
Field number for the "stopTriggerMethod" field.
public const int TakeProfitFieldNumber
value = ProtoOAOrder.TakeProfitFieldNumber
Field number for the "takeProfit" field.
public const int TimeInForceFieldNumber
value = ProtoOAOrder.TimeInForceFieldNumber
Field number for the "timeInForce" field.
public const int TradeDataFieldNumber
value = ProtoOAOrder.TradeDataFieldNumber
Field number for the "tradeData" field.
public const int TrailingStopLossFieldNumber
value = ProtoOAOrder.TrailingStopLossFieldNumber
Field number for the "trailingStopLoss" field.
public const int UtcLastUpdateTimestampFieldNumber
value = ProtoOAOrder.UtcLastUpdateTimestampFieldNumber
Field number for the "utcLastUpdateTimestamp" field.