private void DoLogin() { var info = new CtpReqUserLogin(); info.BrokerID = Server.BrokerID; info.UserProductInfo = Server.UserProductInfo; info.UserID = User.UserID; info.Password = User.Password; _publisher.Post(ConnectionStatus.Logining); Api.ReqUserLogin(info, GetNextRequestId()); }
private void OnFrontConnected(object sender) { _publisher.Post(ConnectionStatus.Connected); var info = new CtpReqUserLogin(); info.BrokerID = Server.BrokerID; info.UserProductInfo = Server.UserProductInfo; info.UserID = User.UserID; info.Password = User.Password; _publisher.Post(ConnectionStatus.Logining); _api.ReqUserLogin(info, GetNextRequestId()); }
private void OnFrontConnected(object sender) { _spi.ProcessLog(new LogField(LogLevel.Debug, $"Ctpse market({Server.Address}) connected")); if (!Connected) { _publisher.Post(ConnectionStatus.Connected); _publisher.Post(ConnectionStatus.Logining); } var info = new CtpReqUserLogin(); info.BrokerID = Server.BrokerID; info.UserProductInfo = Server.UserProductInfo; info.UserID = User.UserID; info.Password = User.Password; _api.ReqUserLogin(info, GetNextRequestId()); }
private void DoLogin() { var info = new CtpReqUserLogin(); info.BrokerID = Server.BrokerID; info.UserProductInfo = Server.UserProductInfo; info.UserID = User.UserID; info.Password = User.Password; if (!Connected) { _publisher.Post(ConnectionStatus.Logining); } else { spi.ProcessLog(new LogField(LogLevel.Debug, $"Ctpse trader({User.UserID}) login")); } api.ReqUserLogin(info, GetNextRequestId()); }
public static extern int ReqUserLogin(IntPtr instance, CtpReqUserLogin reqUserLoginField, int requestId);
///用户登录请求 public int ReqUserLogin(CtpReqUserLogin reqUserLoginField, int requestId) { return(CtpMdNative.ReqUserLogin(_instance, reqUserLoginField, requestId)); }
public virtual void ReqUserLogin(CtpRequest req, CtpReqUserLogin data) { DefaultHandler(req); }