Ejemplo n.º 1
0
        /// <summary>
        /// 资金账户口令更新请求应答
        /// </summary>
        /// <param name="pTradingAccountPasswordUpdate"></param>
        /// <param name="pRspInfo"></param>
        /// <param name="nRequestID"></param>
        /// <param name="bIsLast"></param>
        void OnRspTradingAccountPasswordUpdate(ThostFtdcTradingAccountPasswordUpdateField pTradingAccountPasswordUpdate, ThostFtdcRspInfoField pRspInfo, int nRequestID, bool bIsLast)
        {
            DebugPrintFunc(new StackTrace());
            if (bIsLast && !IsErrorRspInfo(pRspInfo))
            {
                // 保存会话参数
                BROKER_ID = pTradingAccountPasswordUpdate.BrokerID;
                PASSWORD = pTradingAccountPasswordUpdate.NewPassword;
                INVESTOR_ID = pTradingAccountPasswordUpdate.AccountID;

                // 请求查询经纪公司交易参数
                ReqQryBrokerTradingParams();
            }
        }
Ejemplo n.º 2
0
 ///资金账户口令更新请求响应
 public void OnRspTradingAccountPasswordUpdate(ThostFtdcTradingAccountPasswordUpdateField pTradingAccountPasswordUpdate, ThostFtdcRspInfoField pRspInfo, int nRequestID, bool bIsLast)
 {
     if (!IsErrorRspInfo(pRspInfo))
     {
     }
 }
Ejemplo n.º 3
0
        /// <summary>
        /// 资金账户口令更新请求
        /// </summary>
        void ReqTradingAccountPasswordUpdate()
        {
            ThostFtdcTradingAccountPasswordUpdateField req = new ThostFtdcTradingAccountPasswordUpdateField();
            req.AccountID = INVESTOR_ID;
            req.BrokerID = BROKER_ID;
            req.NewPassword = PASSWORD;
            req.OldPassword = PASSWORD;

            int iResult = api.ReqTradingAccountPasswordUpdate(req, ++iRequestID);
            Console.WriteLine("--->>> 资金账户口令更新请求请求: " + ((iResult == 0) ? "成功" : "失败"));
        }