Exemplo n.º 1
0
        public void StartWatch(string Symbol, IQFeed iqf, IQFeedLevelII l2port)
        {
            //Console.WriteLine("StartWatch");

            if (!HasSymbol)
            {
                HasSymbol = true;

                this.Text = "Level II - " + Symbol;

                SymbolEvent se;

                this.iqf    = iqf;
                this.l2port = l2port;

                se = iqf.startWatch(Symbol);
                se.HandleSummaryMessage += new SummaryMessageHandler(se_HandleLISummaryMessage);
                iqf.requestSummary(Symbol);

                l2port.StartWatch(Symbol, new LevelIIUpdateMessageHandler(se_HandleLIIUpdateMessage));

                OrderBookRefreshTimer          = new System.Timers.Timer(750);
                OrderBookRefreshTimer.Elapsed += new ElapsedEventHandler(OrderBookRefreshTimer_Elapsed);
                OrderBookRefreshTimer.Enabled  = true;
            }
        }
Exemplo n.º 2
0
 public void StartWatch(string Symbol, IQFeed iqf)
 {
     this.Symbol             = Symbol;
     this.iqf                = iqf;
     this.Text               = "T&S - " + Symbol;
     se                      = iqf.startWatch(Symbol);
     se.HandleUpdateMessage += new UpdateMessageHandler(se_HandleUpdateMessage);
 }
Exemplo n.º 3
0
        private void GetBasicInfoInit( )
        {
            semaphore = new object();

            iq5009 = new IQFeed();
            iq5009.ConnectedEventHandler += new EventHandler(iq5009_ConnectedEventHandler);
            iq5009.Connect();

            Wait();
        }
Exemplo n.º 4
0
        /// <summary>
        /// Returns a string that represents the current object.
        /// </summary>
        /// <returns>A string that represents the current object.</returns>
        public override string ToString()
        {
            var str = string.Empty;

            if (!Bloomberg.IsEmpty())
            {
                str += " Bloom {0}".Put(Bloomberg);
            }

            if (!Cusip.IsEmpty())
            {
                str += " CUSIP {0}".Put(Cusip);
            }

            if (!IQFeed.IsEmpty())
            {
                str += " IQFeed {0}".Put(IQFeed);
            }

            if (!Isin.IsEmpty())
            {
                str += " ISIN {0}".Put(Isin);
            }

            if (!Ric.IsEmpty())
            {
                str += " RIC {0}".Put(Ric);
            }

            if (!Sedol.IsEmpty())
            {
                str += " SEDOL {0}".Put(Sedol);
            }

            if (InteractiveBrokers != null)
            {
                str += " InteractiveBrokers {0}".Put(InteractiveBrokers);
            }

            if (!Plaza.IsEmpty())
            {
                str += " Plaza {0}".Put(Plaza);
            }

            return(str);
        }