ProtoOAOrder

StockSharp.cTrader.Native.Model

* Trade order entity.

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

Propiedades

BaseSlippagePrice : double

Used for Market Range order with combination of slippageInPoints to specify price range were order can be executed.

ClientOrderId : string

Optional ClientOrderId. Max Length = 50 chars.

ClosingOrder : bool

If TRUE then the order is closing part of whole position. Must have specified positionId.

ExecutedVolume : long

Part of the volume that was filled.

ExecutionPrice : double

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

ExpirationTimestamp : long

The Unix time in milliseconds of expiration if the order has time in force GTD.

HasBaseSlippagePrice : bool

Gets whether the "baseSlippagePrice" field is set

HasClientOrderId : bool

Gets whether the "clientOrderId" field is set

HasClosingOrder : bool

Gets whether the "closingOrder" field is set

HasExecutedVolume : bool

Gets whether the "executedVolume" field is set

HasExecutionPrice : bool

Gets whether the "executionPrice" field is set

HasExpirationTimestamp : bool

Gets whether the "expirationTimestamp" field is set

HasIsStopOut : bool

Gets whether the "isStopOut" field is set

HasLimitPrice : bool

Gets whether the "limitPrice" field is set

HasOrderId : bool

Gets whether the "orderId" field is set

HasOrderStatus : bool

Gets whether the "orderStatus" field is set

HasOrderType : bool

Gets whether the "orderType" field is set

HasPositionId : bool

Gets whether the "positionId" field is set

HasRelativeStopLoss : bool

Gets whether the "relativeStopLoss" field is set

HasRelativeTakeProfit : bool

Gets whether the "relativeTakeProfit" field is set

HasSlippageInPoints : bool

Gets whether the "slippageInPoints" field is set

HasStopLoss : bool

Gets whether the "stopLoss" field is set

HasStopPrice : bool

Gets whether the "stopPrice" field is set

HasStopTriggerMethod : bool

Gets whether the "stopTriggerMethod" field is set

HasTakeProfit : bool

Gets whether the "takeProfit" field is set

HasTimeInForce : bool

Gets whether the "timeInForce" field is set

HasTrailingStopLoss : bool

Gets whether the "trailingStopLoss" field is set

HasUtcLastUpdateTimestamp : bool

Gets whether the "utcLastUpdateTimestamp" field is set

IsStopOut : bool

If TRUE then order was stopped out from server side.

LimitPrice : double

Valid only for LIMIT orders.

OrderId : long

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.

OrderType : ProtoOAOrderType

Order type.

PositionId : long

ID of the position linked to the order (e.g. closing order, order that increase volume of a specific position, etc.).

RelativeStopLoss : long

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 : long

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 : long

Used for Market Range and STOP_LIMIT orders to to specify price range were order can be executed.

StopLoss : double

Absolute stopLoss price.

StopPrice : double

Valid only for STOP and STOP_LIMIT orders.

StopTriggerMethod : ProtoOAOrderTriggerMethod

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

TakeProfit : double

Absolute takeProfit price.

TimeInForce : ProtoOATimeInForce

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

TradeData : ProtoOATradeData

Detailed trader data.

TrailingStopLoss : bool

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

UtcLastUpdateTimestamp : long

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

Métodos

ClearBaseSlippagePrice()

Clears the value of the "baseSlippagePrice" field

ClearClientOrderId()

Clears the value of the "clientOrderId" field

ClearClosingOrder()

Clears the value of the "closingOrder" field

ClearExecutedVolume()

Clears the value of the "executedVolume" field

ClearExecutionPrice()

Clears the value of the "executionPrice" field

ClearExpirationTimestamp()

Clears the value of the "expirationTimestamp" field

ClearIsStopOut()

Clears the value of the "isStopOut" field

ClearLimitPrice()

Clears the value of the "limitPrice" field

ClearOrderId()

Clears the value of the "orderId" field

ClearOrderStatus()

Clears the value of the "orderStatus" field

ClearOrderType()

Clears the value of the "orderType" field

ClearPositionId()

Clears the value of the "positionId" field

ClearRelativeStopLoss()

Clears the value of the "relativeStopLoss" field

ClearRelativeTakeProfit()

Clears the value of the "relativeTakeProfit" field

ClearSlippageInPoints()

Clears the value of the "slippageInPoints" field

ClearStopLoss()

Clears the value of the "stopLoss" field

ClearStopPrice()

Clears the value of the "stopPrice" field

ClearStopTriggerMethod()

Clears the value of the "stopTriggerMethod" field

ClearTakeProfit()

Clears the value of the "takeProfit" field

ClearTimeInForce()

Clears the value of the "timeInForce" field

ClearTrailingStopLoss()

Clears the value of the "trailingStopLoss" field

ClearUtcLastUpdateTimestamp()

Clears the value of the "utcLastUpdateTimestamp" field

Campos

BaseSlippagePriceFieldNumber : int

Field number for the "baseSlippagePrice" field.

ClientOrderIdFieldNumber : int

Field number for the "clientOrderId" field.

ClosingOrderFieldNumber : int

Field number for the "closingOrder" field.

ExecutedVolumeFieldNumber : int

Field number for the "executedVolume" field.

ExecutionPriceFieldNumber : int

Field number for the "executionPrice" field.

ExpirationTimestampFieldNumber : int

Field number for the "expirationTimestamp" field.

IsStopOutFieldNumber : int

Field number for the "isStopOut" field.

LimitPriceFieldNumber : int

Field number for the "limitPrice" field.

OrderIdFieldNumber : int

Field number for the "orderId" field.

OrderStatusFieldNumber : int

Field number for the "orderStatus" field.

OrderTypeFieldNumber : int

Field number for the "orderType" field.

PositionIdFieldNumber : int

Field number for the "positionId" field.

RelativeStopLossFieldNumber : int

Field number for the "relativeStopLoss" field.

RelativeTakeProfitFieldNumber : int

Field number for the "relativeTakeProfit" field.

SlippageInPointsFieldNumber : int

Field number for the "slippageInPoints" field.

StopLossFieldNumber : int

Field number for the "stopLoss" field.

StopPriceFieldNumber : int

Field number for the "stopPrice" field.

StopTriggerMethodFieldNumber : int

Field number for the "stopTriggerMethod" field.

TakeProfitFieldNumber : int

Field number for the "takeProfit" field.

TimeInForceFieldNumber : int

Field number for the "timeInForce" field.

TradeDataFieldNumber : int

Field number for the "tradeData" field.

TrailingStopLossFieldNumber : int

Field number for the "trailingStopLoss" field.

UtcLastUpdateTimestampFieldNumber : int

Field number for the "utcLastUpdateTimestamp" field.