public ProtoMessage CreateAmendPositionTakeProfitRequest(long accountId, string accessToken, long positionId, double takeProfitPrice, string clientMsgId = null) { var _msg = ProtoOAAmendPositionStopLossTakeProfitReq.CreateBuilder(); _msg.SetAccountId(accountId); _msg.SetAccessToken(accessToken); _msg.SetPositionId(positionId); _msg.SetTakeProfitPrice(takeProfitPrice); return(CreateMessage((uint)_msg.PayloadType, _msg.Build().ToByteString(), clientMsgId)); }
public ProtoOAAmendPositionStopLossTakeProfitReq GetAmendPositionStopLossTakeProfitRequest(byte[] msg = null) { return(ProtoOAAmendPositionStopLossTakeProfitReq.CreateBuilder().MergeFrom(GetPayload(msg)).Build()); }