ProtoOANewOrderReq

StockSharp.cTrader.Native.Model

* 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

BaseSlippagePrice
public double BaseSlippagePrice { get; set; }
value = protoOANewOrderReq.BaseSlippagePrice
protoOANewOrderReq.BaseSlippagePrice = value

Base price to calculate relative slippage price for MARKET_RANGE order.

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

Optional user-specific clientOrderId (similar to FIX ClOrderID). MaxLength = 50.

Comment
public string Comment { get; set; }
value = protoOANewOrderReq.Comment
protoOANewOrderReq.Comment = value

User-specified comment. MaxLength = 512.

CtidTraderAccountId
public long CtidTraderAccountId { get; set; }
value = protoOANewOrderReq.CtidTraderAccountId
protoOANewOrderReq.CtidTraderAccountId = value

The unique identifier of the trader's account in cTrader platform.

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

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

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

Gets whether the "baseSlippagePrice" field is set

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

Gets whether the "clientOrderId" field is set

HasComment
public bool HasComment { get; }
value = protoOANewOrderReq.HasComment

Gets whether the "comment" field is set

HasCtidTraderAccountId
public bool HasCtidTraderAccountId { get; }
value = protoOANewOrderReq.HasCtidTraderAccountId

Gets whether the "ctidTraderAccountId" field is set

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

Gets whether the "expirationTimestamp" field is set

HasGuaranteedStopLoss
public bool HasGuaranteedStopLoss { get; }
value = protoOANewOrderReq.HasGuaranteedStopLoss

Gets whether the "guaranteedStopLoss" field is set

HasLabel
public bool HasLabel { get; }
value = protoOANewOrderReq.HasLabel

Gets whether the "label" field is set

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

Gets whether the "limitPrice" field is set

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

Gets whether the "orderType" field is set

HasPayloadType
public bool HasPayloadType { get; }
value = protoOANewOrderReq.HasPayloadType

Gets whether the "payloadType" field is set

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

Gets whether the "positionId" field is set

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

Gets whether the "relativeStopLoss" field is set

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

Gets whether the "relativeTakeProfit" field is set

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

Gets whether the "slippageInPoints" field is set

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

Gets whether the "stopLoss" field is set

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

Gets whether the "stopPrice" field is set

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

Gets whether the "stopTriggerMethod" field is set

HasSymbolId
public bool HasSymbolId { get; }
value = protoOANewOrderReq.HasSymbolId

Gets whether the "symbolId" field is set

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

Gets whether the "takeProfit" field is set

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

Gets whether the "timeInForce" field is set

HasTradeSide
public bool HasTradeSide { get; }
value = protoOANewOrderReq.HasTradeSide

Gets whether the "tradeSide" field is set

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

Gets whether the "trailingStopLoss" field is set

HasVolume
public bool HasVolume { get; }
value = protoOANewOrderReq.HasVolume

Gets whether the "volume" field is set

Label
public string Label { get; set; }
value = protoOANewOrderReq.Label
protoOANewOrderReq.Label = value

User-specified label. MaxLength = 100.

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

The limit price, can be specified for the LIMIT order only.

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

The type of an order - MARKET, LIMIT, STOP, MARKET_RANGE, STOP_LIMIT.

PositionId
public long PositionId { get; set; }
value = protoOANewOrderReq.PositionId
protoOANewOrderReq.PositionId = value

Reference to the existing position if the Order is intended to modify it.

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

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

SlippageInPoints
public int SlippageInPoints { get; set; }
value = protoOANewOrderReq.SlippageInPoints
protoOANewOrderReq.SlippageInPoints = value

Slippage distance for MARKET_RANGE and STOP_LIMIT order.

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

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

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

Trigger method for the STOP or the STOP_LIMIT pending order.

SymbolId
public long SymbolId { get; set; }
value = protoOANewOrderReq.SymbolId
protoOANewOrderReq.SymbolId = value

The unique identifier of a symbol in cTrader platform.

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

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

TradeSide
public ProtoOATradeSide TradeSide { get; set; }
value = protoOANewOrderReq.TradeSide
protoOANewOrderReq.TradeSide = value

The trade direction - BUY or SELL.

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

If TRUE then the Stop Loss is Trailing.

Volume
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

ClearBaseSlippagePrice
public void ClearBaseSlippagePrice()
protoOANewOrderReq.ClearBaseSlippagePrice()

Clears the value of the "baseSlippagePrice" field

ClearClientOrderId
public void ClearClientOrderId()
protoOANewOrderReq.ClearClientOrderId()

Clears the value of the "clientOrderId" field

ClearComment
public void ClearComment()
protoOANewOrderReq.ClearComment()

Clears the value of the "comment" field

ClearCtidTraderAccountId
public void ClearCtidTraderAccountId()
protoOANewOrderReq.ClearCtidTraderAccountId()

Clears the value of the "ctidTraderAccountId" field

ClearExpirationTimestamp
public void ClearExpirationTimestamp()
protoOANewOrderReq.ClearExpirationTimestamp()

Clears the value of the "expirationTimestamp" field

ClearGuaranteedStopLoss
public void ClearGuaranteedStopLoss()
protoOANewOrderReq.ClearGuaranteedStopLoss()

Clears the value of the "guaranteedStopLoss" field

ClearLabel
public void ClearLabel()
protoOANewOrderReq.ClearLabel()

Clears the value of the "label" field

ClearLimitPrice
public void ClearLimitPrice()
protoOANewOrderReq.ClearLimitPrice()

Clears the value of the "limitPrice" field

ClearOrderType
public void ClearOrderType()
protoOANewOrderReq.ClearOrderType()

Clears the value of the "orderType" field

ClearPayloadType
public void ClearPayloadType()
protoOANewOrderReq.ClearPayloadType()

Clears the value of the "payloadType" field

ClearPositionId
public void ClearPositionId()
protoOANewOrderReq.ClearPositionId()

Clears the value of the "positionId" field

ClearRelativeStopLoss
public void ClearRelativeStopLoss()
protoOANewOrderReq.ClearRelativeStopLoss()

Clears the value of the "relativeStopLoss" field

ClearRelativeTakeProfit
public void ClearRelativeTakeProfit()
protoOANewOrderReq.ClearRelativeTakeProfit()

Clears the value of the "relativeTakeProfit" field

ClearSlippageInPoints
public void ClearSlippageInPoints()
protoOANewOrderReq.ClearSlippageInPoints()

Clears the value of the "slippageInPoints" field

ClearStopLoss
public void ClearStopLoss()
protoOANewOrderReq.ClearStopLoss()

Clears the value of the "stopLoss" field

ClearStopPrice
public void ClearStopPrice()
protoOANewOrderReq.ClearStopPrice()

Clears the value of the "stopPrice" field

ClearStopTriggerMethod
public void ClearStopTriggerMethod()
protoOANewOrderReq.ClearStopTriggerMethod()

Clears the value of the "stopTriggerMethod" field

ClearSymbolId
public void ClearSymbolId()
protoOANewOrderReq.ClearSymbolId()

Clears the value of the "symbolId" field

ClearTakeProfit
public void ClearTakeProfit()
protoOANewOrderReq.ClearTakeProfit()

Clears the value of the "takeProfit" field

ClearTimeInForce
public void ClearTimeInForce()
protoOANewOrderReq.ClearTimeInForce()

Clears the value of the "timeInForce" field

ClearTradeSide
public void ClearTradeSide()
protoOANewOrderReq.ClearTradeSide()

Clears the value of the "tradeSide" field

ClearTrailingStopLoss
public void ClearTrailingStopLoss()
protoOANewOrderReq.ClearTrailingStopLoss()

Clears the value of the "trailingStopLoss" field

ClearVolume
public void ClearVolume()
protoOANewOrderReq.ClearVolume()

Clears the value of the "volume" field

Fields

BaseSlippagePriceFieldNumber
public const int BaseSlippagePriceFieldNumber
value = ProtoOANewOrderReq.BaseSlippagePriceFieldNumber

Field number for the "baseSlippagePrice" field.

ClientOrderIdFieldNumber
public const int ClientOrderIdFieldNumber
value = ProtoOANewOrderReq.ClientOrderIdFieldNumber

Field number for the "clientOrderId" field.

CommentFieldNumber
public const int CommentFieldNumber
value = ProtoOANewOrderReq.CommentFieldNumber

Field number for the "comment" field.

CtidTraderAccountIdFieldNumber
public const int CtidTraderAccountIdFieldNumber
value = ProtoOANewOrderReq.CtidTraderAccountIdFieldNumber

Field number for the "ctidTraderAccountId" field.

ExpirationTimestampFieldNumber
public const int ExpirationTimestampFieldNumber
value = ProtoOANewOrderReq.ExpirationTimestampFieldNumber

Field number for the "expirationTimestamp" field.

GuaranteedStopLossFieldNumber
public const int GuaranteedStopLossFieldNumber
value = ProtoOANewOrderReq.GuaranteedStopLossFieldNumber

Field number for the "guaranteedStopLoss" field.

LabelFieldNumber
public const int LabelFieldNumber
value = ProtoOANewOrderReq.LabelFieldNumber

Field number for the "label" field.

LimitPriceFieldNumber
public const int LimitPriceFieldNumber
value = ProtoOANewOrderReq.LimitPriceFieldNumber

Field number for the "limitPrice" field.

OrderTypeFieldNumber
public const int OrderTypeFieldNumber
value = ProtoOANewOrderReq.OrderTypeFieldNumber

Field number for the "orderType" field.

PayloadTypeFieldNumber
public const int PayloadTypeFieldNumber
value = ProtoOANewOrderReq.PayloadTypeFieldNumber

Field number for the "payloadType" field.

PositionIdFieldNumber
public const int PositionIdFieldNumber
value = ProtoOANewOrderReq.PositionIdFieldNumber

Field number for the "positionId" field.

RelativeStopLossFieldNumber
public const int RelativeStopLossFieldNumber
value = ProtoOANewOrderReq.RelativeStopLossFieldNumber

Field number for the "relativeStopLoss" field.

RelativeTakeProfitFieldNumber
public const int RelativeTakeProfitFieldNumber
value = ProtoOANewOrderReq.RelativeTakeProfitFieldNumber

Field number for the "relativeTakeProfit" field.

SlippageInPointsFieldNumber
public const int SlippageInPointsFieldNumber
value = ProtoOANewOrderReq.SlippageInPointsFieldNumber

Field number for the "slippageInPoints" field.

StopLossFieldNumber
public const int StopLossFieldNumber
value = ProtoOANewOrderReq.StopLossFieldNumber

Field number for the "stopLoss" field.

StopPriceFieldNumber
public const int StopPriceFieldNumber
value = ProtoOANewOrderReq.StopPriceFieldNumber

Field number for the "stopPrice" field.

StopTriggerMethodFieldNumber
public const int StopTriggerMethodFieldNumber
value = ProtoOANewOrderReq.StopTriggerMethodFieldNumber

Field number for the "stopTriggerMethod" field.

SymbolIdFieldNumber
public const int SymbolIdFieldNumber
value = ProtoOANewOrderReq.SymbolIdFieldNumber

Field number for the "symbolId" field.

TakeProfitFieldNumber
public const int TakeProfitFieldNumber
value = ProtoOANewOrderReq.TakeProfitFieldNumber

Field number for the "takeProfit" field.

TimeInForceFieldNumber
public const int TimeInForceFieldNumber
value = ProtoOANewOrderReq.TimeInForceFieldNumber

Field number for the "timeInForce" field.

TradeSideFieldNumber
public const int TradeSideFieldNumber
value = ProtoOANewOrderReq.TradeSideFieldNumber

Field number for the "tradeSide" field.

TrailingStopLossFieldNumber
public const int TrailingStopLossFieldNumber
value = ProtoOANewOrderReq.TrailingStopLossFieldNumber

Field number for the "trailingStopLoss" field.

VolumeFieldNumber
public const int VolumeFieldNumber
value = ProtoOANewOrderReq.VolumeFieldNumber

Field number for the "volume" field.