CTP开发——修改密码/登出

CTP修改密码分为修改登录密码和修改资金密码,不支持修改银行账户密码。

一、修改密码

1、修改登录密码:

CThostFtdcUserPasswordUpdateField req = {0};

strcpy(req.BrokerID, m_BrokerID);

strcpy(req.UserID, m_UserID);

req.OldPassword,41);

req.NewPassword,41);

ReqUserPasswordUpdate(&req,reqInfo.nRequestID);

2、修改资金密码

CThostFtdcTradingAccountPasswordUpdateField req = {0};

strcpy(req.BrokerID, m_BrokerID);

strcpy(req.AccountID, m_TradingAccounts[reqInfo.lAccIdx].AccountID);

req.OldPassword;

req.NewPassword;

req.CurrencyID;

ReqTradingAccountPasswordUpdate(&req,reqInfo.nRequestID);

二、登出:

CThostFtdcUserLogoutField req = {0};

memcpy(req.BrokerID, m_BrokerID, sizeof(m_BrokerID));

memcpy(req.UserID, m_UserID, sizeof(m_UserID));

————————————————

版权声明:本文为CSDN博主「章志强」的原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接及本声明。

原文链接:https://blog.csdn.net/zhangzq86/article/details/49585821

(0)

相关推荐