public Trd_UnlockTrade.Response trdlockTrade()
        {
            TrdUnlockTradeExec exec = new TrdUnlockTradeExec(false, null);

            request.execute(exec);
            return((Trd_UnlockTrade.Response)exec.getValue());
        }
        public TraderSession trdUnlockTradeForReal(long futuUserID, String pwdMD5)
        {
            this.trdenv = TrdEnv.TrdEnv_Real;
            //获取交易账户列表
            TrdGetAccListExec rrdexec = new TrdGetAccListExec(futuUserID);

            request.execute(rrdexec);
            Trd_GetAccList.Response response = (Trd_GetAccList.Response)rrdexec.getValue();
            if (response.RetType == 0)
            {
                trdAccs = response.S2C.AccListList.ToList();
                //解锁交易
                TrdUnlockTradeExec exec = new TrdUnlockTradeExec(true, pwdMD5);
                request.execute(exec);
                Trd_UnlockTrade.Response res = (Trd_UnlockTrade.Response)exec.getValue();
                if (res.RetType == 0)
                {
                    List <long> accids = new List <long>();
                    foreach (TrdAcc accid in trdAccs)
                    {
                        accids.Add((long)accid.AccID);
                    }
                    //订阅接收交易账户的推送数据
                    TrdSubAccPushExec trdSubAccPushExec = new TrdSubAccPushExec(accids.ToArray());
                    request.execute(trdSubAccPushExec);
                    return(this);
                }
                throw new Exception(res.RetMsg);
            }
            throw new Exception(response.RetMsg);
        }