ProtoOAOrder

StockSharp.cTrader.Native.Model

* Trade order entity.

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

Properties

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

ClientOrderId
public string ClientOrderId { get; set; }
value = protoOAOrder.ClientOrderId
protoOAOrder.ClientOrderId = value

Optional ClientOrderId. Max Length = 50 chars.

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

ExecutedVolume
public long ExecutedVolume { get; set; }
value = protoOAOrder.ExecutedVolume
protoOAOrder.ExecutedVolume = value

Part of the volume that was filled.

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

Price at which an order was executed. For order with FILLED status.

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

HasBaseSlippagePrice
public bool HasBaseSlippagePrice { get; }
value = protoOAOrder.HasBaseSlippagePrice

Gets whether the "baseSlippagePrice" field is set

HasClientOrderId
public bool HasClientOrderId { get; }
value = protoOAOrder.HasClientOrderId

Gets whether the "clientOrderId" field is set

HasClosingOrder
public bool HasClosingOrder { get; }
value = protoOAOrder.HasClosingOrder

Gets whether the "closingOrder" field is set

HasExecutedVolume
public bool HasExecutedVolume { get; }
value = protoOAOrder.HasExecutedVolume

Gets whether the "executedVolume" field is set

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

Gets whether the "executionPrice" field is set

HasExpirationTimestamp
public bool HasExpirationTimestamp { get; }
value = protoOAOrder.HasExpirationTimestamp

Gets whether the "expirationTimestamp" field is set

HasIsStopOut
public bool HasIsStopOut { get; }
value = protoOAOrder.HasIsStopOut

Gets whether the "isStopOut" field is set

HasLimitPrice
public bool HasLimitPrice { get; }
value = protoOAOrder.HasLimitPrice

Gets whether the "limitPrice" field is set

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

Gets whether the "orderId" field is set

HasOrderStatus
public bool HasOrderStatus { get; }
value = protoOAOrder.HasOrderStatus

Gets whether the "orderStatus" field is set

HasOrderType
public bool HasOrderType { get; }
value = protoOAOrder.HasOrderType

Gets whether the "orderType" field is set

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

Gets whether the "positionId" field is set

HasRelativeStopLoss
public bool HasRelativeStopLoss { get; }
value = protoOAOrder.HasRelativeStopLoss

Gets whether the "relativeStopLoss" field is set

HasRelativeTakeProfit
public bool HasRelativeTakeProfit { get; }
value = protoOAOrder.HasRelativeTakeProfit

Gets whether the "relativeTakeProfit" field is set

HasSlippageInPoints
public bool HasSlippageInPoints { get; }
value = protoOAOrder.HasSlippageInPoints

Gets whether the "slippageInPoints" field is set

HasStopLoss
public bool HasStopLoss { get; }
value = protoOAOrder.HasStopLoss

Gets whether the "stopLoss" field is set

HasStopPrice
public bool HasStopPrice { get; }
value = protoOAOrder.HasStopPrice

Gets whether the "stopPrice" field is set

HasStopTriggerMethod
public bool HasStopTriggerMethod { get; }
value = protoOAOrder.HasStopTriggerMethod

Gets whether the "stopTriggerMethod" field is set

HasTakeProfit
public bool HasTakeProfit { get; }
value = protoOAOrder.HasTakeProfit

Gets whether the "takeProfit" field is set

HasTimeInForce
public bool HasTimeInForce { get; }
value = protoOAOrder.HasTimeInForce

Gets whether the "timeInForce" field is set

HasTrailingStopLoss
public bool HasTrailingStopLoss { get; }
value = protoOAOrder.HasTrailingStopLoss

Gets whether the "trailingStopLoss" field is set

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

Gets whether the "utcLastUpdateTimestamp" field is set

IsStopOut
public bool IsStopOut { get; set; }
value = protoOAOrder.IsStopOut
protoOAOrder.IsStopOut = value

If TRUE then order was stopped out from server side.

LimitPrice
public double LimitPrice { get; set; }
value = protoOAOrder.LimitPrice
protoOAOrder.LimitPrice = value

Valid only for LIMIT orders.

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

OrderStatus
public ProtoOAOrderStatus OrderStatus { get; set; }
value = protoOAOrder.OrderStatus
protoOAOrder.OrderStatus = value

Order status.

OrderType
public ProtoOAOrderType OrderType { get; set; }
value = protoOAOrder.OrderType
protoOAOrder.OrderType = value

Order type.

PositionId
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.).

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

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

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

StopLoss
public double StopLoss { get; set; }
value = protoOAOrder.StopLoss
protoOAOrder.StopLoss = value

Absolute stopLoss price.

StopPrice
public double StopPrice { get; set; }
value = protoOAOrder.StopPrice
protoOAOrder.StopPrice = value

Valid only for STOP and STOP_LIMIT orders.

StopTriggerMethod
public ProtoOAOrderTriggerMethod StopTriggerMethod { get; set; }
value = protoOAOrder.StopTriggerMethod
protoOAOrder.StopTriggerMethod = value

Trigger method for the order. Valid only for STOP and STOP_LIMIT orders.

TakeProfit
public double TakeProfit { get; set; }
value = protoOAOrder.TakeProfit
protoOAOrder.TakeProfit = value

Absolute takeProfit price.

TimeInForce
public ProtoOATimeInForce TimeInForce { get; set; }
value = protoOAOrder.TimeInForce
protoOAOrder.TimeInForce = value

Order's time in force. Depends on order type.

TradeData
public ProtoOATradeData TradeData { get; set; }
value = protoOAOrder.TradeData
protoOAOrder.TradeData = value

Detailed trader data.

TrailingStopLoss
public bool TrailingStopLoss { get; set; }
value = protoOAOrder.TrailingStopLoss
protoOAOrder.TrailingStopLoss = value

If TRUE then order is trailingStopLoss. Valid for STOP_LOSS_TAKE_PROFIT order.

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

The Unix time in milliseconds of the last update of the order.

Methods

ClearBaseSlippagePrice
public void ClearBaseSlippagePrice()
protoOAOrder.ClearBaseSlippagePrice()

Clears the value of the "baseSlippagePrice" field

ClearClientOrderId
public void ClearClientOrderId()
protoOAOrder.ClearClientOrderId()

Clears the value of the "clientOrderId" field

ClearClosingOrder
public void ClearClosingOrder()
protoOAOrder.ClearClosingOrder()

Clears the value of the "closingOrder" field

ClearExecutedVolume
public void ClearExecutedVolume()
protoOAOrder.ClearExecutedVolume()

Clears the value of the "executedVolume" field

ClearExecutionPrice
public void ClearExecutionPrice()
protoOAOrder.ClearExecutionPrice()

Clears the value of the "executionPrice" field

ClearExpirationTimestamp
public void ClearExpirationTimestamp()
protoOAOrder.ClearExpirationTimestamp()

Clears the value of the "expirationTimestamp" field

ClearIsStopOut
public void ClearIsStopOut()
protoOAOrder.ClearIsStopOut()

Clears the value of the "isStopOut" field

ClearLimitPrice
public void ClearLimitPrice()
protoOAOrder.ClearLimitPrice()

Clears the value of the "limitPrice" field

ClearOrderId
public void ClearOrderId()
protoOAOrder.ClearOrderId()

Clears the value of the "orderId" field

ClearOrderStatus
public void ClearOrderStatus()
protoOAOrder.ClearOrderStatus()

Clears the value of the "orderStatus" field

ClearOrderType
public void ClearOrderType()
protoOAOrder.ClearOrderType()

Clears the value of the "orderType" field

ClearPositionId
public void ClearPositionId()
protoOAOrder.ClearPositionId()

Clears the value of the "positionId" field

ClearRelativeStopLoss
public void ClearRelativeStopLoss()
protoOAOrder.ClearRelativeStopLoss()

Clears the value of the "relativeStopLoss" field

ClearRelativeTakeProfit
public void ClearRelativeTakeProfit()
protoOAOrder.ClearRelativeTakeProfit()

Clears the value of the "relativeTakeProfit" field

ClearSlippageInPoints
public void ClearSlippageInPoints()
protoOAOrder.ClearSlippageInPoints()

Clears the value of the "slippageInPoints" field

ClearStopLoss
public void ClearStopLoss()
protoOAOrder.ClearStopLoss()

Clears the value of the "stopLoss" field

ClearStopPrice
public void ClearStopPrice()
protoOAOrder.ClearStopPrice()

Clears the value of the "stopPrice" field

ClearStopTriggerMethod
public void ClearStopTriggerMethod()
protoOAOrder.ClearStopTriggerMethod()

Clears the value of the "stopTriggerMethod" field

ClearTakeProfit
public void ClearTakeProfit()
protoOAOrder.ClearTakeProfit()

Clears the value of the "takeProfit" field

ClearTimeInForce
public void ClearTimeInForce()
protoOAOrder.ClearTimeInForce()

Clears the value of the "timeInForce" field

ClearTrailingStopLoss
public void ClearTrailingStopLoss()
protoOAOrder.ClearTrailingStopLoss()

Clears the value of the "trailingStopLoss" field

ClearUtcLastUpdateTimestamp
public void ClearUtcLastUpdateTimestamp()
protoOAOrder.ClearUtcLastUpdateTimestamp()

Clears the value of the "utcLastUpdateTimestamp" field

Fields

BaseSlippagePriceFieldNumber
public const int BaseSlippagePriceFieldNumber
value = ProtoOAOrder.BaseSlippagePriceFieldNumber

Field number for the "baseSlippagePrice" field.

ClientOrderIdFieldNumber
public const int ClientOrderIdFieldNumber
value = ProtoOAOrder.ClientOrderIdFieldNumber

Field number for the "clientOrderId" field.

ClosingOrderFieldNumber
public const int ClosingOrderFieldNumber
value = ProtoOAOrder.ClosingOrderFieldNumber

Field number for the "closingOrder" field.

ExecutedVolumeFieldNumber
public const int ExecutedVolumeFieldNumber
value = ProtoOAOrder.ExecutedVolumeFieldNumber

Field number for the "executedVolume" field.

ExecutionPriceFieldNumber
public const int ExecutionPriceFieldNumber
value = ProtoOAOrder.ExecutionPriceFieldNumber

Field number for the "executionPrice" field.

ExpirationTimestampFieldNumber
public const int ExpirationTimestampFieldNumber
value = ProtoOAOrder.ExpirationTimestampFieldNumber

Field number for the "expirationTimestamp" field.

IsStopOutFieldNumber
public const int IsStopOutFieldNumber
value = ProtoOAOrder.IsStopOutFieldNumber

Field number for the "isStopOut" field.

LimitPriceFieldNumber
public const int LimitPriceFieldNumber
value = ProtoOAOrder.LimitPriceFieldNumber

Field number for the "limitPrice" field.

OrderIdFieldNumber
public const int OrderIdFieldNumber
value = ProtoOAOrder.OrderIdFieldNumber

Field number for the "orderId" field.

OrderStatusFieldNumber
public const int OrderStatusFieldNumber
value = ProtoOAOrder.OrderStatusFieldNumber

Field number for the "orderStatus" field.

OrderTypeFieldNumber
public const int OrderTypeFieldNumber
value = ProtoOAOrder.OrderTypeFieldNumber

Field number for the "orderType" field.

PositionIdFieldNumber
public const int PositionIdFieldNumber
value = ProtoOAOrder.PositionIdFieldNumber

Field number for the "positionId" field.

RelativeStopLossFieldNumber
public const int RelativeStopLossFieldNumber
value = ProtoOAOrder.RelativeStopLossFieldNumber

Field number for the "relativeStopLoss" field.

RelativeTakeProfitFieldNumber
public const int RelativeTakeProfitFieldNumber
value = ProtoOAOrder.RelativeTakeProfitFieldNumber

Field number for the "relativeTakeProfit" field.

SlippageInPointsFieldNumber
public const int SlippageInPointsFieldNumber
value = ProtoOAOrder.SlippageInPointsFieldNumber

Field number for the "slippageInPoints" field.

StopLossFieldNumber
public const int StopLossFieldNumber
value = ProtoOAOrder.StopLossFieldNumber

Field number for the "stopLoss" field.

StopPriceFieldNumber
public const int StopPriceFieldNumber
value = ProtoOAOrder.StopPriceFieldNumber

Field number for the "stopPrice" field.

StopTriggerMethodFieldNumber
public const int StopTriggerMethodFieldNumber
value = ProtoOAOrder.StopTriggerMethodFieldNumber

Field number for the "stopTriggerMethod" field.

TakeProfitFieldNumber
public const int TakeProfitFieldNumber
value = ProtoOAOrder.TakeProfitFieldNumber

Field number for the "takeProfit" field.

TimeInForceFieldNumber
public const int TimeInForceFieldNumber
value = ProtoOAOrder.TimeInForceFieldNumber

Field number for the "timeInForce" field.

TradeDataFieldNumber
public const int TradeDataFieldNumber
value = ProtoOAOrder.TradeDataFieldNumber

Field number for the "tradeData" field.

TrailingStopLossFieldNumber
public const int TrailingStopLossFieldNumber
value = ProtoOAOrder.TrailingStopLossFieldNumber

Field number for the "trailingStopLoss" field.

UtcLastUpdateTimestampFieldNumber
public const int UtcLastUpdateTimestampFieldNumber
value = ProtoOAOrder.UtcLastUpdateTimestampFieldNumber

Field number for the "utcLastUpdateTimestamp" field.