예제 #1
0
        private void DoAuthenticate()
        {
            var info = new CtpReqAuthenticate();

            info.AuthCode        = Server.AuthCode;
            info.BrokerID        = Server.BrokerID;
            info.UserProductInfo = Server.UserProductInfo;
            info.UserID          = User.UserID;
            _publisher.Post(ConnectionStatus.Authorizing);
            Api.ReqAuthenticate(info, GetNextRequestId());
        }
예제 #2
0
        private void DoAuthenticate()
        {
            var info = new CtpReqAuthenticate();

            info.BrokerID        = Server.BrokerID;
            info.UserID          = User.UserID;
            info.UserProductInfo = Server.UserProductInfo;
            info.AuthCode        = Server.AuthCode;
#if CTPSE || CTPMINI
            info.AppID = Server.ExtInfoChar128;
#endif
            if (!Connected)
            {
                _publisher.Post(ConnectionStatus.Authorizing);
            }
            else
            {
                spi.ProcessLog(new LogField(LogLevel.Debug, $"Ctpse trader({User.UserID}) authorizing"));
            }

            api.ReqAuthenticate(info, GetNextRequestId());
        }
예제 #3
0
 public virtual void ReqAuthenticate(CtpRequest req, CtpReqAuthenticate data)
 {
     DefaultHandler(req);
 }