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
public long CtidTraderAccountId { get; set; }
value = protoOAAmendPositionSLTPReq.CtidTraderAccountId
protoOAAmendPositionSLTPReq.CtidTraderAccountId = value

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

GuaranteedStopLoss
public bool GuaranteedStopLoss { get; set; }
value = protoOAAmendPositionSLTPReq.GuaranteedStopLoss
protoOAAmendPositionSLTPReq.GuaranteedStopLoss = value

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

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

Gets whether the "ctidTraderAccountId" field is set

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

Gets whether the "guaranteedStopLoss" field is set

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

Gets whether the "payloadType" field is set

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

Gets whether the "positionId" field is set

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

Gets whether the "stopLoss" field is set

HasStopLossTriggerMethod
public bool HasStopLossTriggerMethod { get; }
value = protoOAAmendPositionSLTPReq.HasStopLossTriggerMethod

Gets whether the "stopLossTriggerMethod" field is set

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

Gets whether the "takeProfit" field is set

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

Gets whether the "trailingStopLoss" field is set

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

The unique ID of the position to amend.

StopLoss
public double StopLoss { get; set; }
value = protoOAAmendPositionSLTPReq.StopLoss
protoOAAmendPositionSLTPReq.StopLoss = value

Absolute Stop Loss price (1.23456 for example).

StopLossTriggerMethod
public ProtoOAOrderTriggerMethod StopLossTriggerMethod { get; set; }
value = protoOAAmendPositionSLTPReq.StopLossTriggerMethod
protoOAAmendPositionSLTPReq.StopLossTriggerMethod = value

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

TakeProfit
public double TakeProfit { get; set; }
value = protoOAAmendPositionSLTPReq.TakeProfit
protoOAAmendPositionSLTPReq.TakeProfit = value

Absolute Take Profit price (1.26543 for example).

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

If TRUE then the Trailing Stop Loss is applied.

Methods

ClearCtidTraderAccountId
public void ClearCtidTraderAccountId()
protoOAAmendPositionSLTPReq.ClearCtidTraderAccountId()

Clears the value of the "ctidTraderAccountId" field

ClearGuaranteedStopLoss
public void ClearGuaranteedStopLoss()
protoOAAmendPositionSLTPReq.ClearGuaranteedStopLoss()

Clears the value of the "guaranteedStopLoss" field

ClearPayloadType
public void ClearPayloadType()
protoOAAmendPositionSLTPReq.ClearPayloadType()

Clears the value of the "payloadType" field

ClearPositionId
public void ClearPositionId()
protoOAAmendPositionSLTPReq.ClearPositionId()

Clears the value of the "positionId" field

ClearStopLoss
public void ClearStopLoss()
protoOAAmendPositionSLTPReq.ClearStopLoss()

Clears the value of the "stopLoss" field

ClearStopLossTriggerMethod
public void ClearStopLossTriggerMethod()
protoOAAmendPositionSLTPReq.ClearStopLossTriggerMethod()

Clears the value of the "stopLossTriggerMethod" field

ClearTakeProfit
public void ClearTakeProfit()
protoOAAmendPositionSLTPReq.ClearTakeProfit()

Clears the value of the "takeProfit" field

ClearTrailingStopLoss
public void ClearTrailingStopLoss()
protoOAAmendPositionSLTPReq.ClearTrailingStopLoss()

Clears the value of the "trailingStopLoss" field

Fields

CtidTraderAccountIdFieldNumber
public const int CtidTraderAccountIdFieldNumber
value = ProtoOAAmendPositionSLTPReq.CtidTraderAccountIdFieldNumber

Field number for the "ctidTraderAccountId" field.

GuaranteedStopLossFieldNumber
public const int GuaranteedStopLossFieldNumber
value = ProtoOAAmendPositionSLTPReq.GuaranteedStopLossFieldNumber

Field number for the "guaranteedStopLoss" field.

PayloadTypeFieldNumber
public const int PayloadTypeFieldNumber
value = ProtoOAAmendPositionSLTPReq.PayloadTypeFieldNumber

Field number for the "payloadType" field.

PositionIdFieldNumber
public const int PositionIdFieldNumber
value = ProtoOAAmendPositionSLTPReq.PositionIdFieldNumber

Field number for the "positionId" field.

StopLossFieldNumber
public const int StopLossFieldNumber
value = ProtoOAAmendPositionSLTPReq.StopLossFieldNumber

Field number for the "stopLoss" field.

StopLossTriggerMethodFieldNumber
public const int StopLossTriggerMethodFieldNumber
value = ProtoOAAmendPositionSLTPReq.StopLossTriggerMethodFieldNumber

Field number for the "stopLossTriggerMethod" field.

TakeProfitFieldNumber
public const int TakeProfitFieldNumber
value = ProtoOAAmendPositionSLTPReq.TakeProfitFieldNumber

Field number for the "takeProfit" field.

TrailingStopLossFieldNumber
public const int TrailingStopLossFieldNumber
value = ProtoOAAmendPositionSLTPReq.TrailingStopLossFieldNumber

Field number for the "trailingStopLoss" field.