private string CreateQuote(string symbol, int interval) { var quoteId = this.GetQuoteId(symbol, interval); if (!Quotes.ContainsKey(quoteId)) { var q = new QuoteBasicBase(symbol, interval); Quotes.TryAdd(quoteId, q as QuoteBasicBase); Quotes[quoteId].OnDataAddedOrUpdated += QuoteStore_OnDataAddedOrUpdated; //trigger add to other intervals } return(quoteId); }
public QuoteBasicBase GetQuoteBasic(string symbol, int interval) { var quoteId = this.GetQuoteId(symbol, interval); return(Quotes.ContainsKey(quoteId)? Quotes[quoteId] : null); }