/// <summary> /// Highest priced Quote /// </summary> /// <param name="A"></param> /// <param name="B"></param> /// <returns></returns> public static StockQuote MaxPrice(StockQuote A, StockQuote B) { if (A.Price > B.Price) { return(A); } return(B); }
/// <summary> /// Highest priced Quote /// </summary> /// <param name="A"></param> /// <param name="B"></param> /// <returns></returns> public static StockQuote MaxPrice(StockQuote A, StockQuote B) { if (A.Price > B.Price) return A; return B; }
/// <summary> /// Handle a new quote coming in /// </summary> /// <param name="quote"></param> private void SubscribeCallback(StockQuote quote) { Quotes.Insert(0, quote); }