ProtoOAAmendPositionSLTPReq
* 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
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.
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.
public bool HasCtidTraderAccountId { get; }
value = protoOAAmendPositionSLTPReq.HasCtidTraderAccountId
Gets whether the "ctidTraderAccountId" field is set
public bool HasGuaranteedStopLoss { get; }
value = protoOAAmendPositionSLTPReq.HasGuaranteedStopLoss
Gets whether the "guaranteedStopLoss" field is set
public bool HasPayloadType { get; }
value = protoOAAmendPositionSLTPReq.HasPayloadType
Gets whether the "payloadType" field is set
public bool HasPositionId { get; }
value = protoOAAmendPositionSLTPReq.HasPositionId
Gets whether the "positionId" field is set
public bool HasStopLoss { get; }
value = protoOAAmendPositionSLTPReq.HasStopLoss
Gets whether the "stopLoss" field is set
public bool HasStopLossTriggerMethod { get; }
value = protoOAAmendPositionSLTPReq.HasStopLossTriggerMethod
Gets whether the "stopLossTriggerMethod" field is set
public bool HasTakeProfit { get; }
value = protoOAAmendPositionSLTPReq.HasTakeProfit
Gets whether the "takeProfit" field is set
public bool HasTrailingStopLoss { get; }
value = protoOAAmendPositionSLTPReq.HasTrailingStopLoss
Gets whether the "trailingStopLoss" field is set
public long PositionId { get; set; }
value = protoOAAmendPositionSLTPReq.PositionId
protoOAAmendPositionSLTPReq.PositionId = value
The unique ID of the position to amend.
public double StopLoss { get; set; }
value = protoOAAmendPositionSLTPReq.StopLoss
protoOAAmendPositionSLTPReq.StopLoss = value
Absolute Stop Loss price (1.23456 for example).
public ProtoOAOrderTriggerMethod StopLossTriggerMethod { get; set; }
value = protoOAAmendPositionSLTPReq.StopLossTriggerMethod
protoOAAmendPositionSLTPReq.StopLossTriggerMethod = value
The Stop trigger method for the Stop Loss/Take Profit order.
public double TakeProfit { get; set; }
value = protoOAAmendPositionSLTPReq.TakeProfit
protoOAAmendPositionSLTPReq.TakeProfit = value
Absolute Take Profit price (1.26543 for example).
public bool TrailingStopLoss { get; set; }
value = protoOAAmendPositionSLTPReq.TrailingStopLoss
protoOAAmendPositionSLTPReq.TrailingStopLoss = value
If TRUE then the Trailing Stop Loss is applied.
Methods
public void ClearCtidTraderAccountId()
protoOAAmendPositionSLTPReq.ClearCtidTraderAccountId()
Clears the value of the "ctidTraderAccountId" field
public void ClearGuaranteedStopLoss()
protoOAAmendPositionSLTPReq.ClearGuaranteedStopLoss()
Clears the value of the "guaranteedStopLoss" field
public void ClearPayloadType()
protoOAAmendPositionSLTPReq.ClearPayloadType()
Clears the value of the "payloadType" field
public void ClearPositionId()
protoOAAmendPositionSLTPReq.ClearPositionId()
Clears the value of the "positionId" field
public void ClearStopLoss()
protoOAAmendPositionSLTPReq.ClearStopLoss()
Clears the value of the "stopLoss" field
public void ClearStopLossTriggerMethod()
protoOAAmendPositionSLTPReq.ClearStopLossTriggerMethod()
Clears the value of the "stopLossTriggerMethod" field
public void ClearTakeProfit()
protoOAAmendPositionSLTPReq.ClearTakeProfit()
Clears the value of the "takeProfit" field
public void ClearTrailingStopLoss()
protoOAAmendPositionSLTPReq.ClearTrailingStopLoss()
Clears the value of the "trailingStopLoss" field
Fields
public const int CtidTraderAccountIdFieldNumber
value = ProtoOAAmendPositionSLTPReq.CtidTraderAccountIdFieldNumber
Field number for the "ctidTraderAccountId" field.
public const int GuaranteedStopLossFieldNumber
value = ProtoOAAmendPositionSLTPReq.GuaranteedStopLossFieldNumber
Field number for the "guaranteedStopLoss" field.
public const int PayloadTypeFieldNumber
value = ProtoOAAmendPositionSLTPReq.PayloadTypeFieldNumber
Field number for the "payloadType" field.
public const int PositionIdFieldNumber
value = ProtoOAAmendPositionSLTPReq.PositionIdFieldNumber
Field number for the "positionId" field.
public const int StopLossFieldNumber
value = ProtoOAAmendPositionSLTPReq.StopLossFieldNumber
Field number for the "stopLoss" field.
public const int StopLossTriggerMethodFieldNumber
value = ProtoOAAmendPositionSLTPReq.StopLossTriggerMethodFieldNumber
Field number for the "stopLossTriggerMethod" field.
public const int TakeProfitFieldNumber
value = ProtoOAAmendPositionSLTPReq.TakeProfitFieldNumber
Field number for the "takeProfit" field.
public const int TrailingStopLossFieldNumber
value = ProtoOAAmendPositionSLTPReq.TrailingStopLossFieldNumber
Field number for the "trailingStopLoss" field.