コード例 #1
0
 protected override void OnAuthorReq(object param)
 {
     AuthorizationRequest = true;
     MySetting.Save();
     BitMexREST = new RESTBitMexSigned(Settings.APIKey, Settings.APISecret, Settings.RealWork);
     BitMexREST.PropertyChanged += BitMexREST_PropertyChanged;
     BitMexREST.OnAllPropertyChanged();
     bitMexWebSocket = new WebSocketBitMexSigned(Settings.APIKey, Settings.APISecret, Settings.RealWork);
     bitMexWebSocket.PropertyChanged += BitMexWebSocket_PropertyChangedAsync;
     bitMexWebSocket.OnAllPropertyChanged();
 }
コード例 #2
0
        //public static WebSocketBitMexSigned WSocket { get; private set; }

        public void Open(RESTBitMexSigned bitMEX, WebSocketBitMexSigned wSocket)
        {
            Settings = MySetting.Settings;

            bitMexREST = bitMEX;

            WebSocketSigned = wSocket;

            WebSocketSigned.PropertyChanged += WebSocketSigned_PropertyChangedAsync;
            WebSocketSigned.OnAllPropertyChanged();
            WebSocketSigned.SubscribeAdditional();

            //WebSocketUnSigned = ViewModelWSOrderBook10.ViewModelWS.WSocket;
            //WebSocketUnSigned.PropertyChanged += WebSocketUnSigned_PropertyChanged;
            //WebSocketUnSigned.OnAllPropertyChanged();

            //WSocket = WebSocketBitMexSigned.WSocket;
            AuthorizationComplete = true;
        }