private void Login() { ctpReader.ReqUserLogin(new ThostFtdcReqUserLoginField() { BrokerID = AccountInfo.BrokerID, UserID = AccountInfo.InvestorID, Password = AccountInfo.Password }); }
void ReqUserLogin() { ThostFtdcReqUserLoginField req = new ThostFtdcReqUserLoginField(); req.BrokerID = BrokerID; req.UserID = UserID; req.Password = Password; int iResult = api.ReqUserLogin(req, ++iRequestID); Console.WriteLine("--->>> 发送用户登录请求: " + ((iResult == 0) ? "成功" : "失败")); }
private void ReqUserLogin() { ThostFtdcReqUserLoginField req = new ThostFtdcReqUserLoginField(); req.BrokerID = _accountInfo.BrokerID; req.UserID = _accountInfo.UserID; req.Password = _accountInfo.Password; int iResult = api.ReqUserLogin(req); _logger.Info("--->>> 发送用户登录请求: " + ((iResult == 0) ? "成功" : "失败")); }
private void ReqUserLogin() { ThostFtdcReqUserLoginField reqUserLogin = new ThostFtdcReqUserLoginField(); reqUserLogin.BrokerID = BROKER_ID; var ret = mdApi.ReqUserLogin(reqUserLogin, iRequestID++); HandleStatusInternal("CTP发送用户登录请求:" + (ret == 0 ? "成功" : "失败,返回代码" + ret)); // 通知登录结果 if (HandleLoginDel != null && ret != 0) { HandleLoginDel(false); } }