예제 #1
0
        public CryptoRtdServer()
        {
            _subMgr = new SubscriptionManager();
            _socket = new GdaxWebSocketClient(new Uri("wss://ws-feed.gdax.com"));

            _binanceAdapter = new BinanceAdapter(_subMgr);
        }
예제 #2
0
        //
        // Excel calls this when it wants to shut down RTD server.
        //
        void IRtdServer.ServerTerminate()
        {
            if (_timer != null)
            {
                _timer.Stop();
                _timer = null;
            }

            if (_socket != null)
            {
                _socket.Disconnect();
                _socket = null;
            }
            if (_binanceAdapter != null)
            {
                _binanceAdapter.UnsubscribeAllStreams();
                _binanceAdapter = null;
            }
        }
예제 #3
0
        public CryptoRtdServer()
        {
            _subMgr = new SubscriptionManager();

            _binanceAdapter = new BinanceAdapter(_subMgr);
        }