Ejemplo n.º 1
0
        public static void ProcessQuotation(Quotation quotation, int volume)
        {
            CandleBuilder builder;

            if (!builders.TryGetValue(quotation.InstrumentID, out builder))
            {
                builder = new CandleBuilder(CandleDAL.GetLast(quotation.InstrumentID), CandleType.Minute);
                builders.Add(quotation.InstrumentID, builder);
            }
            builder.ProcessQuotation(quotation, volume);
            DataSaver.AddCandle(builder.LastData);
        }