ProtoOANewOrderReq
* Request for sending a new trading order. Allowed only if the accessToken has the "trade" permissions for the trading account.
Реализует: IMessage<ProtoOANewOrderReq>, IMessage, IEquatable<ProtoOANewOrderReq>, IDeepCloneable<ProtoOANewOrderReq>, IBufferMessage
Свойства
BaseSlippagePrice : double
Base price to calculate relative slippage price for MARKET_RANGE order.
ClientOrderId : string
Optional user-specific clientOrderId (similar to FIX ClOrderID). MaxLength = 50.
CtidTraderAccountId : long
The unique identifier of the trader's account in cTrader platform.
ExpirationTimestamp : long
The Unix time in milliseconds of Order expiration. Should be set for the Good Till Date orders.
GuaranteedStopLoss : bool
If TRUE then stopLoss is guaranteed. Required to be set to TRUE for the Limited Risk accounts (ProtoOATrader.isLimitedRisk=true).
HasBaseSlippagePrice : bool
Gets whether the "baseSlippagePrice" field is set
HasClientOrderId : bool
Gets whether the "clientOrderId" field is set
HasComment : bool
Gets whether the "comment" field is set
HasCtidTraderAccountId : bool
Gets whether the "ctidTraderAccountId" field is set
HasExpirationTimestamp : bool
Gets whether the "expirationTimestamp" field is set
HasGuaranteedStopLoss : bool
Gets whether the "guaranteedStopLoss" field is set
HasLimitPrice : bool
Gets whether the "limitPrice" field is set
HasOrderType : bool
Gets whether the "orderType" field is set
HasPayloadType : bool
Gets whether the "payloadType" 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
HasSymbolId : bool
Gets whether the "symbolId" field is set
HasTakeProfit : bool
Gets whether the "takeProfit" field is set
HasTimeInForce : bool
Gets whether the "timeInForce" field is set
HasTradeSide : bool
Gets whether the "tradeSide" field is set
HasTrailingStopLoss : bool
Gets whether the "trailingStopLoss" field is set
LimitPrice : double
The limit price, can be specified for the LIMIT order only.
OrderType : ProtoOAOrderType
The type of an order - MARKET, LIMIT, STOP, MARKET_RANGE, STOP_LIMIT.
PositionId : long
Reference to the existing position if the Order is intended to modify it.
RelativeStopLoss : long
Relative Stop Loss that can be specified instead of the absolute as one. Specified in 1/100000 of unit of a price. For BUY stopLoss = entryPrice - relativeStopLoss, for SELL stopLoss = entryPrice + relativeStopLoss.
RelativeTakeProfit : long
Relative Take Profit that can be specified instead of the absolute one. Specified in 1/100000 of unit of a price. For BUY takeProfit = entryPrice + relativeTakeProfit, for SELL takeProfit = entryPrice - relativeTakeProfit.
SlippageInPoints : int
Slippage distance for MARKET_RANGE and STOP_LIMIT order.
StopLoss : double
The absolute Stop Loss price (1.23456 for example). Not supported for the MARKER orders.
StopTriggerMethod : ProtoOAOrderTriggerMethod
Trigger method for the STOP or the STOP_LIMIT pending order.
TakeProfit : double
The absolute Take Profit price (1.23456 for example). Unsupported for the MARKER orders.
TimeInForce : ProtoOATimeInForce
The specific order execution or expiration instruction - GOOD_TILL_DATE, GOOD_TILL_CANCEL, IMMEDIATE_OR_CANCEL, FILL_OR_KILL, MARKET_ON_OPEN.
TradeSide : ProtoOATradeSide
The trade direction - BUY or SELL.
TrailingStopLoss : bool
If TRUE then the Stop Loss is Trailing.
Методы
ClearBaseSlippagePrice()
Clears the value of the "baseSlippagePrice" field
ClearClientOrderId()
Clears the value of the "clientOrderId" field
ClearComment()
Clears the value of the "comment" field
ClearCtidTraderAccountId()
Clears the value of the "ctidTraderAccountId" field
ClearExpirationTimestamp()
Clears the value of the "expirationTimestamp" field
ClearGuaranteedStopLoss()
Clears the value of the "guaranteedStopLoss" field
ClearLabel()
Clears the value of the "label" field
ClearLimitPrice()
Clears the value of the "limitPrice" field
ClearOrderType()
Clears the value of the "orderType" field
ClearPayloadType()
Clears the value of the "payloadType" 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
ClearSymbolId()
Clears the value of the "symbolId" field
ClearTakeProfit()
Clears the value of the "takeProfit" field
ClearTimeInForce()
Clears the value of the "timeInForce" field
ClearTradeSide()
Clears the value of the "tradeSide" field
ClearTrailingStopLoss()
Clears the value of the "trailingStopLoss" field
ClearVolume()
Clears the value of the "volume" field
Поля
BaseSlippagePriceFieldNumber : int
Field number for the "baseSlippagePrice" field.
ClientOrderIdFieldNumber : int
Field number for the "clientOrderId" field.
CommentFieldNumber : int
Field number for the "comment" field.
CtidTraderAccountIdFieldNumber : int
Field number for the "ctidTraderAccountId" field.
ExpirationTimestampFieldNumber : int
Field number for the "expirationTimestamp" field.
GuaranteedStopLossFieldNumber : int
Field number for the "guaranteedStopLoss" field.
LabelFieldNumber : int
Field number for the "label" field.
LimitPriceFieldNumber : int
Field number for the "limitPrice" field.
OrderTypeFieldNumber : int
Field number for the "orderType" field.
PayloadTypeFieldNumber : int
Field number for the "payloadType" 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.
SymbolIdFieldNumber : int
Field number for the "symbolId" field.
TakeProfitFieldNumber : int
Field number for the "takeProfit" field.
TimeInForceFieldNumber : int
Field number for the "timeInForce" field.
TradeSideFieldNumber : int
Field number for the "tradeSide" field.
TrailingStopLossFieldNumber : int
Field number for the "trailingStopLoss" field.
VolumeFieldNumber : int
Field number for the "volume" field.