Exemple #1
0
        public void ShouldFetchQuotes()
        {
            var svc    = new YahooFinancialDataProvider();
            var quotes = svc.GetQuotes("MSFT", "GOOG", "AAPL");

            Assert.That(quotes, Is.Not.Null);
            Assert.That(quotes.Count, Is.Not.LessThanOrEqualTo(0));
        }
Exemple #2
0
        public ZmqService(YahooFinancialDataProvider primitiveQuoteService)
        {
            this.primitiveQuoteService = primitiveQuoteService;

            subscribedTickerList.AddRange(MarketDataSettings.StartupTickers);
            refreshInterval = MarketDataSettings.ServerRefreshMillis;

            socketFactory = NetMQContext.Create();
        }