public ProtoMessage CreateAmendPositionTakeProfitRequest(long accountId, string accessToken, long positionId, double takeProfitPrice, string clientMsgId = null)
        {
            var _msg = ProtoOAAmendPositionSLTPReq.CreateBuilder();

            _msg.SetCtidTraderAccountId(accountId);
            _msg.SetPositionId(positionId);
            _msg.SetTakeProfit(takeProfitPrice);
            return(CreateMessage((uint)_msg.PayloadType, _msg.Build().ToByteString(), clientMsgId));
        }
 public ProtoOAAmendPositionSLTPReq GetAmendPositionStopLossTakeProfitRequest(byte[] msg = null)
 {
     return(ProtoOAAmendPositionSLTPReq.CreateBuilder().MergeFrom(GetPayload(msg)).Build());
 }