Exemple #1
0
            public void UpdateQuote(TapQuoteAPI.TapAPIQuoteWhole quoteWhole)
            {
                string key = MakeContractID(quoteWhole.Contract);

                if (QuoteDict.ContainsKey(key))
                {
                    QuoteDict[key] = new GUI_Quote(quoteWhole);
                }
            }
Exemple #2
0
            public void AddQuote(TapQuoteAPI.TapAPIQuoteWhole quoteWhole)
            {
                string key = MakeContractID(quoteWhole.Contract);

                if (!QuoteDict.ContainsKey(key))
                {
                    GUI_Quote newQuote = new GUI_Quote(quoteWhole);
                    QuoteDict.Add(newQuote.ContractID, newQuote);
                }
                else
                {
                    QuoteDict[key] = new GUI_Quote(quoteWhole);
                }
            }