Exemplo n.º 1
0
        public IEnumerable <HistoricalValue> Get(string id)
        {
            var hps = new HistoricalPriceStorage(@"HistoricalData\DataFiles");
            var res = hps.GetHistoricalQuotes(id).Where(n => n.Date > new DateTime(2005, 1, 1)).Where((x, i) => i % 10 == 0).OrderBy(n => n.Date);

            return(res);
        }
        public IEnumerable <HistoricalValue> Get(string id)
        {
            var hps = new HistoricalPriceStorage(@"HistoricalData\DataFiles");
            var res = hps.GetHistoricalQuotes(id).Where(n => n.Date > new DateTime(2005, 1, 1)).Where((x, i) => i % 10 == 0).OrderBy(n => n.Date);

            var metric = new MetricTelemetry("HistoricalPriceListLength",
                                             1, res.Count(), res.Count(), res.Count(), 0);

            telemetryClient.TrackMetric(metric);

            return(res);
        }