ProtoOAAmendPositionSLTPReq

StockSharp.cTrader.Native.Model

* 请求修改 StopLoss 和 TakeProfit 现有位置。只有在 accessToken 有交易账户的“交易”权限时才允许。

实现: IMessage<ProtoOAAmendPositionSLTPReq>, IMessage, IEquatable<ProtoOAAmendPositionSLTPReq>, IDeepCloneable<ProtoOAAmendPositionSLTPReq>, IBufferMessage

属性

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

交易商账户的独特标识符。 用于匹配交易商账户的响应 。

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

如果TRUE,则停止损失得到保证。法国风险或保证停止损失账户可用。

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

获取是否设置了 " ctidTraderAccountId " 字段

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

获取是否设置了 " guaranteedStopLoss " 字段

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

获取是否设置了 " payloadType " 字段

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

获取是否设置了 " positionId " 字段

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

获取是否设置了 " stopLoss " 字段

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

获取是否设置了 " stopLossTriggerMethod " 字段

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

获取是否设置了 " takeProfit " 字段

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

获取是否设置了 " trailingStopLoss " 字段

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

修改职位的独特身份

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

绝对停止损失价格(例如1.23456)。

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

停止丢失/ 获取利润命令的触发方法 。

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

绝对利润价格(例如1.26543)。

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

如果TRUE,则应用"拖曳停止"(Trailing stop Loss).

方法

ClearCtidTraderAccountId
public void ClearCtidTraderAccountId()
protoOAAmendPositionSLTPReq.ClearCtidTraderAccountId()

清除 " ctidTraderAccountId " 字段的值

ClearGuaranteedStopLoss
public void ClearGuaranteedStopLoss()
protoOAAmendPositionSLTPReq.ClearGuaranteedStopLoss()

清除 " guaranteedStopLoss " 字段的值

ClearPayloadType
public void ClearPayloadType()
protoOAAmendPositionSLTPReq.ClearPayloadType()

清除 " payloadType " 字段的值

ClearPositionId
public void ClearPositionId()
protoOAAmendPositionSLTPReq.ClearPositionId()

清除 " positionId " 字段的值

ClearStopLoss
public void ClearStopLoss()
protoOAAmendPositionSLTPReq.ClearStopLoss()

清除 " stopLoss " 字段的值

ClearStopLossTriggerMethod
public void ClearStopLossTriggerMethod()
protoOAAmendPositionSLTPReq.ClearStopLossTriggerMethod()

清除 " stopLossTriggerMethod " 字段的值

ClearTakeProfit
public void ClearTakeProfit()
protoOAAmendPositionSLTPReq.ClearTakeProfit()

清除 " takeProfit " 字段的值

ClearTrailingStopLoss
public void ClearTrailingStopLoss()
protoOAAmendPositionSLTPReq.ClearTrailingStopLoss()

清除 " trailingStopLoss " 字段的值

字段

CtidTraderAccountIdFieldNumber
public const int CtidTraderAccountIdFieldNumber
value = ProtoOAAmendPositionSLTPReq.CtidTraderAccountIdFieldNumber

" ctidTraderAccountId " 字段的字段编号。

GuaranteedStopLossFieldNumber
public const int GuaranteedStopLossFieldNumber
value = ProtoOAAmendPositionSLTPReq.GuaranteedStopLossFieldNumber

" guaranteedStopLoss " 字段的字段编号。

PayloadTypeFieldNumber
public const int PayloadTypeFieldNumber
value = ProtoOAAmendPositionSLTPReq.PayloadTypeFieldNumber

" payloadType " 字段的字段编号。

PositionIdFieldNumber
public const int PositionIdFieldNumber
value = ProtoOAAmendPositionSLTPReq.PositionIdFieldNumber

" positionId " 字段的字段编号。

StopLossFieldNumber
public const int StopLossFieldNumber
value = ProtoOAAmendPositionSLTPReq.StopLossFieldNumber

" stopLoss " 字段的字段编号。

StopLossTriggerMethodFieldNumber
public const int StopLossTriggerMethodFieldNumber
value = ProtoOAAmendPositionSLTPReq.StopLossTriggerMethodFieldNumber

" stopLossTriggerMethod " 字段的字段编号。

TakeProfitFieldNumber
public const int TakeProfitFieldNumber
value = ProtoOAAmendPositionSLTPReq.TakeProfitFieldNumber

" takeProfit " 字段的字段编号。

TrailingStopLossFieldNumber
public const int TrailingStopLossFieldNumber
value = ProtoOAAmendPositionSLTPReq.TrailingStopLossFieldNumber

" trailingStopLoss " 字段的字段编号。