ProtoOANewOrderReq
* Request for sending a new trading order. Allowed only if the accessToken has the "trade" permissions for the trading account.
Implements: IMessage<ProtoOANewOrderReq>, IMessage, IEquatable<ProtoOANewOrderReq>, IDeepCloneable<ProtoOANewOrderReq>, IBufferMessage
Properties
public double BaseSlippagePrice { get; set; }
value = protoOANewOrderReq.BaseSlippagePrice
protoOANewOrderReq.BaseSlippagePrice = value
Base price to calculate relative slippage price for MARKET_RANGE order.
public string ClientOrderId { get; set; }
value = protoOANewOrderReq.ClientOrderId
protoOANewOrderReq.ClientOrderId = value
Optional user-specific clientOrderId (similar to FIX ClOrderID). MaxLength = 50.
public string Comment { get; set; }
value = protoOANewOrderReq.Comment
protoOANewOrderReq.Comment = value
User-specified comment. MaxLength = 512.
public long CtidTraderAccountId { get; set; }
value = protoOANewOrderReq.CtidTraderAccountId
protoOANewOrderReq.CtidTraderAccountId = value
The unique identifier of the trader's account in cTrader platform.
public long ExpirationTimestamp { get; set; }
value = protoOANewOrderReq.ExpirationTimestamp
protoOANewOrderReq.ExpirationTimestamp = value
The Unix time in milliseconds of Order expiration. Should be set for the Good Till Date orders.
public bool GuaranteedStopLoss { get; set; }
value = protoOANewOrderReq.GuaranteedStopLoss
protoOANewOrderReq.GuaranteedStopLoss = value
If TRUE then stopLoss is guaranteed. Required to be set to TRUE for the Limited Risk accounts (ProtoOATrader.isLimitedRisk=true).
public bool HasBaseSlippagePrice { get; }
value = protoOANewOrderReq.HasBaseSlippagePrice
Gets whether the "baseSlippagePrice" field is set
public bool HasClientOrderId { get; }
value = protoOANewOrderReq.HasClientOrderId
Gets whether the "clientOrderId" field is set
public bool HasComment { get; }
value = protoOANewOrderReq.HasComment
Gets whether the "comment" field is set
public bool HasCtidTraderAccountId { get; }
value = protoOANewOrderReq.HasCtidTraderAccountId
Gets whether the "ctidTraderAccountId" field is set
public bool HasExpirationTimestamp { get; }
value = protoOANewOrderReq.HasExpirationTimestamp
Gets whether the "expirationTimestamp" field is set
public bool HasGuaranteedStopLoss { get; }
value = protoOANewOrderReq.HasGuaranteedStopLoss
Gets whether the "guaranteedStopLoss" field is set
public bool HasLabel { get; }
value = protoOANewOrderReq.HasLabel
Gets whether the "label" field is set
public bool HasLimitPrice { get; }
value = protoOANewOrderReq.HasLimitPrice
Gets whether the "limitPrice" field is set
public bool HasOrderType { get; }
value = protoOANewOrderReq.HasOrderType
Gets whether the "orderType" field is set
public bool HasPayloadType { get; }
value = protoOANewOrderReq.HasPayloadType
Gets whether the "payloadType" field is set
public bool HasPositionId { get; }
value = protoOANewOrderReq.HasPositionId
Gets whether the "positionId" field is set
public bool HasRelativeStopLoss { get; }
value = protoOANewOrderReq.HasRelativeStopLoss
Gets whether the "relativeStopLoss" field is set
public bool HasRelativeTakeProfit { get; }
value = protoOANewOrderReq.HasRelativeTakeProfit
Gets whether the "relativeTakeProfit" field is set
public bool HasSlippageInPoints { get; }
value = protoOANewOrderReq.HasSlippageInPoints
Gets whether the "slippageInPoints" field is set
public bool HasStopLoss { get; }
value = protoOANewOrderReq.HasStopLoss
Gets whether the "stopLoss" field is set
public bool HasStopPrice { get; }
value = protoOANewOrderReq.HasStopPrice
Gets whether the "stopPrice" field is set
public bool HasStopTriggerMethod { get; }
value = protoOANewOrderReq.HasStopTriggerMethod
Gets whether the "stopTriggerMethod" field is set
public bool HasSymbolId { get; }
value = protoOANewOrderReq.HasSymbolId
Gets whether the "symbolId" field is set
public bool HasTakeProfit { get; }
value = protoOANewOrderReq.HasTakeProfit
Gets whether the "takeProfit" field is set
public bool HasTimeInForce { get; }
value = protoOANewOrderReq.HasTimeInForce
Gets whether the "timeInForce" field is set
public bool HasTradeSide { get; }
value = protoOANewOrderReq.HasTradeSide
Gets whether the "tradeSide" field is set
public bool HasTrailingStopLoss { get; }
value = protoOANewOrderReq.HasTrailingStopLoss
Gets whether the "trailingStopLoss" field is set
public bool HasVolume { get; }
value = protoOANewOrderReq.HasVolume
Gets whether the "volume" field is set
public string Label { get; set; }
value = protoOANewOrderReq.Label
protoOANewOrderReq.Label = value
User-specified label. MaxLength = 100.
public double LimitPrice { get; set; }
value = protoOANewOrderReq.LimitPrice
protoOANewOrderReq.LimitPrice = value
The limit price, can be specified for the LIMIT order only.
public ProtoOAOrderType OrderType { get; set; }
value = protoOANewOrderReq.OrderType
protoOANewOrderReq.OrderType = value
The type of an order - MARKET, LIMIT, STOP, MARKET_RANGE, STOP_LIMIT.
public long PositionId { get; set; }
value = protoOANewOrderReq.PositionId
protoOANewOrderReq.PositionId = value
Reference to the existing position if the Order is intended to modify it.
public long RelativeStopLoss { get; set; }
value = protoOANewOrderReq.RelativeStopLoss
protoOANewOrderReq.RelativeStopLoss = value
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.
public long RelativeTakeProfit { get; set; }
value = protoOANewOrderReq.RelativeTakeProfit
protoOANewOrderReq.RelativeTakeProfit = value
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.
public int SlippageInPoints { get; set; }
value = protoOANewOrderReq.SlippageInPoints
protoOANewOrderReq.SlippageInPoints = value
Slippage distance for MARKET_RANGE and STOP_LIMIT order.
public double StopLoss { get; set; }
value = protoOANewOrderReq.StopLoss
protoOANewOrderReq.StopLoss = value
The absolute Stop Loss price (1.23456 for example). Not supported for the MARKER orders.
public double StopPrice { get; set; }
value = protoOANewOrderReq.StopPrice
protoOANewOrderReq.StopPrice = value
Stop Price, can be specified for the STOP and the STOP_LIMIT orders only.
public ProtoOAOrderTriggerMethod StopTriggerMethod { get; set; }
value = protoOANewOrderReq.StopTriggerMethod
protoOANewOrderReq.StopTriggerMethod = value
Trigger method for the STOP or the STOP_LIMIT pending order.
public long SymbolId { get; set; }
value = protoOANewOrderReq.SymbolId
protoOANewOrderReq.SymbolId = value
The unique identifier of a symbol in cTrader platform.
public double TakeProfit { get; set; }
value = protoOANewOrderReq.TakeProfit
protoOANewOrderReq.TakeProfit = value
The absolute Take Profit price (1.23456 for example). Unsupported for the MARKER orders.
public ProtoOATimeInForce TimeInForce { get; set; }
value = protoOANewOrderReq.TimeInForce
protoOANewOrderReq.TimeInForce = value
The specific order execution or expiration instruction - GOOD_TILL_DATE, GOOD_TILL_CANCEL, IMMEDIATE_OR_CANCEL, FILL_OR_KILL, MARKET_ON_OPEN.
public ProtoOATradeSide TradeSide { get; set; }
value = protoOANewOrderReq.TradeSide
protoOANewOrderReq.TradeSide = value
The trade direction - BUY or SELL.
public bool TrailingStopLoss { get; set; }
value = protoOANewOrderReq.TrailingStopLoss
protoOANewOrderReq.TrailingStopLoss = value
If TRUE then the Stop Loss is Trailing.
public long Volume { get; set; }
value = protoOANewOrderReq.Volume
protoOANewOrderReq.Volume = value
The volume represented in 0.01 of a unit (e.g. US$ 10.00 = 1000).
Methods
public void ClearBaseSlippagePrice()
protoOANewOrderReq.ClearBaseSlippagePrice()
Clears the value of the "baseSlippagePrice" field
public void ClearClientOrderId()
protoOANewOrderReq.ClearClientOrderId()
Clears the value of the "clientOrderId" field
public void ClearComment()
protoOANewOrderReq.ClearComment()
Clears the value of the "comment" field
public void ClearCtidTraderAccountId()
protoOANewOrderReq.ClearCtidTraderAccountId()
Clears the value of the "ctidTraderAccountId" field
public void ClearExpirationTimestamp()
protoOANewOrderReq.ClearExpirationTimestamp()
Clears the value of the "expirationTimestamp" field
public void ClearGuaranteedStopLoss()
protoOANewOrderReq.ClearGuaranteedStopLoss()
Clears the value of the "guaranteedStopLoss" field
public void ClearLabel()
protoOANewOrderReq.ClearLabel()
Clears the value of the "label" field
public void ClearLimitPrice()
protoOANewOrderReq.ClearLimitPrice()
Clears the value of the "limitPrice" field
public void ClearOrderType()
protoOANewOrderReq.ClearOrderType()
Clears the value of the "orderType" field
public void ClearPayloadType()
protoOANewOrderReq.ClearPayloadType()
Clears the value of the "payloadType" field
public void ClearPositionId()
protoOANewOrderReq.ClearPositionId()
Clears the value of the "positionId" field
public void ClearRelativeStopLoss()
protoOANewOrderReq.ClearRelativeStopLoss()
Clears the value of the "relativeStopLoss" field
public void ClearRelativeTakeProfit()
protoOANewOrderReq.ClearRelativeTakeProfit()
Clears the value of the "relativeTakeProfit" field
public void ClearSlippageInPoints()
protoOANewOrderReq.ClearSlippageInPoints()
Clears the value of the "slippageInPoints" field
public void ClearStopLoss()
protoOANewOrderReq.ClearStopLoss()
Clears the value of the "stopLoss" field
public void ClearStopPrice()
protoOANewOrderReq.ClearStopPrice()
Clears the value of the "stopPrice" field
public void ClearStopTriggerMethod()
protoOANewOrderReq.ClearStopTriggerMethod()
Clears the value of the "stopTriggerMethod" field
public void ClearSymbolId()
protoOANewOrderReq.ClearSymbolId()
Clears the value of the "symbolId" field
public void ClearTakeProfit()
protoOANewOrderReq.ClearTakeProfit()
Clears the value of the "takeProfit" field
public void ClearTimeInForce()
protoOANewOrderReq.ClearTimeInForce()
Clears the value of the "timeInForce" field
public void ClearTradeSide()
protoOANewOrderReq.ClearTradeSide()
Clears the value of the "tradeSide" field
public void ClearTrailingStopLoss()
protoOANewOrderReq.ClearTrailingStopLoss()
Clears the value of the "trailingStopLoss" field
public void ClearVolume()
protoOANewOrderReq.ClearVolume()
Clears the value of the "volume" field
Fields
public const int BaseSlippagePriceFieldNumber
value = ProtoOANewOrderReq.BaseSlippagePriceFieldNumber
Field number for the "baseSlippagePrice" field.
public const int ClientOrderIdFieldNumber
value = ProtoOANewOrderReq.ClientOrderIdFieldNumber
Field number for the "clientOrderId" field.
public const int CommentFieldNumber
value = ProtoOANewOrderReq.CommentFieldNumber
Field number for the "comment" field.
public const int CtidTraderAccountIdFieldNumber
value = ProtoOANewOrderReq.CtidTraderAccountIdFieldNumber
Field number for the "ctidTraderAccountId" field.
public const int ExpirationTimestampFieldNumber
value = ProtoOANewOrderReq.ExpirationTimestampFieldNumber
Field number for the "expirationTimestamp" field.
public const int GuaranteedStopLossFieldNumber
value = ProtoOANewOrderReq.GuaranteedStopLossFieldNumber
Field number for the "guaranteedStopLoss" field.
public const int LabelFieldNumber
value = ProtoOANewOrderReq.LabelFieldNumber
Field number for the "label" field.
public const int LimitPriceFieldNumber
value = ProtoOANewOrderReq.LimitPriceFieldNumber
Field number for the "limitPrice" field.
public const int OrderTypeFieldNumber
value = ProtoOANewOrderReq.OrderTypeFieldNumber
Field number for the "orderType" field.
public const int PayloadTypeFieldNumber
value = ProtoOANewOrderReq.PayloadTypeFieldNumber
Field number for the "payloadType" field.
public const int PositionIdFieldNumber
value = ProtoOANewOrderReq.PositionIdFieldNumber
Field number for the "positionId" field.
public const int RelativeStopLossFieldNumber
value = ProtoOANewOrderReq.RelativeStopLossFieldNumber
Field number for the "relativeStopLoss" field.
public const int RelativeTakeProfitFieldNumber
value = ProtoOANewOrderReq.RelativeTakeProfitFieldNumber
Field number for the "relativeTakeProfit" field.
public const int SlippageInPointsFieldNumber
value = ProtoOANewOrderReq.SlippageInPointsFieldNumber
Field number for the "slippageInPoints" field.
public const int StopLossFieldNumber
value = ProtoOANewOrderReq.StopLossFieldNumber
Field number for the "stopLoss" field.
public const int StopPriceFieldNumber
value = ProtoOANewOrderReq.StopPriceFieldNumber
Field number for the "stopPrice" field.
public const int StopTriggerMethodFieldNumber
value = ProtoOANewOrderReq.StopTriggerMethodFieldNumber
Field number for the "stopTriggerMethod" field.
public const int SymbolIdFieldNumber
value = ProtoOANewOrderReq.SymbolIdFieldNumber
Field number for the "symbolId" field.
public const int TakeProfitFieldNumber
value = ProtoOANewOrderReq.TakeProfitFieldNumber
Field number for the "takeProfit" field.
public const int TimeInForceFieldNumber
value = ProtoOANewOrderReq.TimeInForceFieldNumber
Field number for the "timeInForce" field.
public const int TradeSideFieldNumber
value = ProtoOANewOrderReq.TradeSideFieldNumber
Field number for the "tradeSide" field.
public const int TrailingStopLossFieldNumber
value = ProtoOANewOrderReq.TrailingStopLossFieldNumber
Field number for the "trailingStopLoss" field.
public const int VolumeFieldNumber
value = ProtoOANewOrderReq.VolumeFieldNumber
Field number for the "volume" field.