ProtoOAAmendPositionSLTPReq

StockSharp.cTrader.Native.Model

* Request for amending StopLoss and TakeProfit of existing position. Allowed only if the accessToken has "trade" permissions for the trading account.

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

Properties

CtidTraderAccountId : long

Unique identifier of the trader's account. Used to match responses to trader's accounts.

GuaranteedStopLoss : bool

If TRUE then the Stop Loss is guaranteed. Available for the French Risk or the Guaranteed Stop Loss Accounts.

HasCtidTraderAccountId : bool

Gets whether the "ctidTraderAccountId" field is set

HasGuaranteedStopLoss : bool

Gets whether the "guaranteedStopLoss" field is set

HasPayloadType : bool

Gets whether the "payloadType" field is set

HasPositionId : bool

Gets whether the "positionId" field is set

HasStopLoss : bool

Gets whether the "stopLoss" field is set

HasStopLossTriggerMethod : bool

Gets whether the "stopLossTriggerMethod" field is set

HasTakeProfit : bool

Gets whether the "takeProfit" field is set

HasTrailingStopLoss : bool

Gets whether the "trailingStopLoss" field is set

PositionId : long

The unique ID of the position to amend.

StopLoss : double

Absolute Stop Loss price (1.23456 for example).

StopLossTriggerMethod : ProtoOAOrderTriggerMethod

The Stop trigger method for the Stop Loss/Take Profit order.

TakeProfit : double

Absolute Take Profit price (1.26543 for example).

TrailingStopLoss : bool

If TRUE then the Trailing Stop Loss is applied.

Methods

ClearCtidTraderAccountId()

Clears the value of the "ctidTraderAccountId" field

ClearGuaranteedStopLoss()

Clears the value of the "guaranteedStopLoss" field

ClearPayloadType()

Clears the value of the "payloadType" field

ClearPositionId()

Clears the value of the "positionId" field

ClearStopLoss()

Clears the value of the "stopLoss" field

ClearStopLossTriggerMethod()

Clears the value of the "stopLossTriggerMethod" field

ClearTakeProfit()

Clears the value of the "takeProfit" field

ClearTrailingStopLoss()

Clears the value of the "trailingStopLoss" field

Fields

CtidTraderAccountIdFieldNumber : int

Field number for the "ctidTraderAccountId" field.

GuaranteedStopLossFieldNumber : int

Field number for the "guaranteedStopLoss" field.

PayloadTypeFieldNumber : int

Field number for the "payloadType" field.

PositionIdFieldNumber : int

Field number for the "positionId" field.

StopLossFieldNumber : int

Field number for the "stopLoss" field.

StopLossTriggerMethodFieldNumber : int

Field number for the "stopLossTriggerMethod" field.

TakeProfitFieldNumber : int

Field number for the "takeProfit" field.

TrailingStopLossFieldNumber : int

Field number for the "trailingStopLoss" field.