public ProtoMessage CreateClosePositionRequest(long accountId, string accessToken, long positionId, long volume, string clientMsgId = null)
        {
            var _msg = ProtoOAClosePositionReq.CreateBuilder();

            _msg.SetCtidTraderAccountId(accountId);
            _msg.SetPositionId(positionId);
            _msg.SetVolume(volume);
            return(CreateMessage((uint)_msg.PayloadType, _msg.Build().ToByteString(), clientMsgId));
        }
 public ProtoOAClosePositionReq GetClosePositionRequest(byte[] msg = null)
 {
     return(ProtoOAClosePositionReq.CreateBuilder().MergeFrom(GetPayload(msg)).Build());
 }