Пример #1
0
        private void DealEvents_DealAddEventHandler(object control, CIMTDeal deal)
        {
            var info = new RawTradeEvent()
            {
                Id          = deal.Deal(),
                Action      = deal.Action(),
                Symbol      = deal.Symbol(),
                Volume      = deal.Volume(),
                TimeMsc     = deal.TimeMsc(),
                Login       = deal.Login(),
                Description = deal.Print()
            };

            _rawTradeEvents.Enqueue(info);

            Console.WriteLine($"Deal event received ({_connection.Name}): {deal.Print()}");
            Console.WriteLine();
        }