Example #1
0
        public void StartStreamThreads()
        {
            if (_pricingStream != null)
            {
                _pricingStream.StopSession();
                _pricingStream = null;

                _transactionsSession.StopSession();
                _transactionsSession = null;
            }

            _pricingStream = new PricingSession(Credentials.GetDefaultCredentials().DefaultAccountId, _allInstruments);
            _pricingStream.DataReceived += _marketDepthStream_DataReceived;
            _pricingStream.StartSession();

            _transactionsSession = new TransactionsSession(Credentials.GetDefaultCredentials().DefaultAccountId);
            _transactionsSession.DataReceived += _transactionsSession_DataReceived;
            _transactionsSession.StartSession();
        }
Example #2
0
 static void StopTransactionsStream()
 {
     _transactionsSession.StopSession();
 }