ProtoOAAmendPositionSLTPReq
* 请求修改 StopLoss 和 TakeProfit 现有位置。只有在 accessToken 有交易账户的“交易”权限时才允许。
实现: IMessage<ProtoOAAmendPositionSLTPReq>, IMessage, IEquatable<ProtoOAAmendPositionSLTPReq>, IDeepCloneable<ProtoOAAmendPositionSLTPReq>, IBufferMessage
属性
public long CtidTraderAccountId { get; set; }
value = protoOAAmendPositionSLTPReq.CtidTraderAccountId
protoOAAmendPositionSLTPReq.CtidTraderAccountId = value
交易商账户的独特标识符。 用于匹配交易商账户的响应 。
public bool GuaranteedStopLoss { get; set; }
value = protoOAAmendPositionSLTPReq.GuaranteedStopLoss
protoOAAmendPositionSLTPReq.GuaranteedStopLoss = value
如果TRUE,则停止损失得到保证。法国风险或保证停止损失账户可用。
public bool HasCtidTraderAccountId { get; }
value = protoOAAmendPositionSLTPReq.HasCtidTraderAccountId
获取是否设置了 " ctidTraderAccountId " 字段
public bool HasGuaranteedStopLoss { get; }
value = protoOAAmendPositionSLTPReq.HasGuaranteedStopLoss
获取是否设置了 " guaranteedStopLoss " 字段
public bool HasPayloadType { get; }
value = protoOAAmendPositionSLTPReq.HasPayloadType
获取是否设置了 " payloadType " 字段
public bool HasPositionId { get; }
value = protoOAAmendPositionSLTPReq.HasPositionId
获取是否设置了 " positionId " 字段
public bool HasStopLoss { get; }
value = protoOAAmendPositionSLTPReq.HasStopLoss
获取是否设置了 " stopLoss " 字段
public bool HasStopLossTriggerMethod { get; }
value = protoOAAmendPositionSLTPReq.HasStopLossTriggerMethod
获取是否设置了 " stopLossTriggerMethod " 字段
public bool HasTakeProfit { get; }
value = protoOAAmendPositionSLTPReq.HasTakeProfit
获取是否设置了 " takeProfit " 字段
public bool HasTrailingStopLoss { get; }
value = protoOAAmendPositionSLTPReq.HasTrailingStopLoss
获取是否设置了 " trailingStopLoss " 字段
public long PositionId { get; set; }
value = protoOAAmendPositionSLTPReq.PositionId
protoOAAmendPositionSLTPReq.PositionId = value
修改职位的独特身份
public double StopLoss { get; set; }
value = protoOAAmendPositionSLTPReq.StopLoss
protoOAAmendPositionSLTPReq.StopLoss = value
绝对停止损失价格(例如1.23456)。
public ProtoOAOrderTriggerMethod StopLossTriggerMethod { get; set; }
value = protoOAAmendPositionSLTPReq.StopLossTriggerMethod
protoOAAmendPositionSLTPReq.StopLossTriggerMethod = value
停止丢失/ 获取利润命令的触发方法 。
public double TakeProfit { get; set; }
value = protoOAAmendPositionSLTPReq.TakeProfit
protoOAAmendPositionSLTPReq.TakeProfit = value
绝对利润价格(例如1.26543)。
public bool TrailingStopLoss { get; set; }
value = protoOAAmendPositionSLTPReq.TrailingStopLoss
protoOAAmendPositionSLTPReq.TrailingStopLoss = value
如果TRUE,则应用"拖曳停止"(Trailing stop Loss).
方法
public void ClearCtidTraderAccountId()
protoOAAmendPositionSLTPReq.ClearCtidTraderAccountId()
清除 " ctidTraderAccountId " 字段的值
public void ClearGuaranteedStopLoss()
protoOAAmendPositionSLTPReq.ClearGuaranteedStopLoss()
清除 " guaranteedStopLoss " 字段的值
public void ClearPayloadType()
protoOAAmendPositionSLTPReq.ClearPayloadType()
清除 " payloadType " 字段的值
public void ClearPositionId()
protoOAAmendPositionSLTPReq.ClearPositionId()
清除 " positionId " 字段的值
public void ClearStopLoss()
protoOAAmendPositionSLTPReq.ClearStopLoss()
清除 " stopLoss " 字段的值
public void ClearStopLossTriggerMethod()
protoOAAmendPositionSLTPReq.ClearStopLossTriggerMethod()
清除 " stopLossTriggerMethod " 字段的值
public void ClearTakeProfit()
protoOAAmendPositionSLTPReq.ClearTakeProfit()
清除 " takeProfit " 字段的值
public void ClearTrailingStopLoss()
protoOAAmendPositionSLTPReq.ClearTrailingStopLoss()
清除 " trailingStopLoss " 字段的值
字段
public const int CtidTraderAccountIdFieldNumber
value = ProtoOAAmendPositionSLTPReq.CtidTraderAccountIdFieldNumber
" ctidTraderAccountId " 字段的字段编号。
public const int GuaranteedStopLossFieldNumber
value = ProtoOAAmendPositionSLTPReq.GuaranteedStopLossFieldNumber
" guaranteedStopLoss " 字段的字段编号。
public const int PayloadTypeFieldNumber
value = ProtoOAAmendPositionSLTPReq.PayloadTypeFieldNumber
" payloadType " 字段的字段编号。
public const int PositionIdFieldNumber
value = ProtoOAAmendPositionSLTPReq.PositionIdFieldNumber
" positionId " 字段的字段编号。
public const int StopLossFieldNumber
value = ProtoOAAmendPositionSLTPReq.StopLossFieldNumber
" stopLoss " 字段的字段编号。
public const int StopLossTriggerMethodFieldNumber
value = ProtoOAAmendPositionSLTPReq.StopLossTriggerMethodFieldNumber
" stopLossTriggerMethod " 字段的字段编号。
public const int TakeProfitFieldNumber
value = ProtoOAAmendPositionSLTPReq.TakeProfitFieldNumber
" takeProfit " 字段的字段编号。
public const int TrailingStopLossFieldNumber
value = ProtoOAAmendPositionSLTPReq.TrailingStopLossFieldNumber
" trailingStopLoss " 字段的字段编号。