Beispiel #1
0
        public void Get_Symbols_List_From_Github()
        {
            FeedProvider googleFeed = FeedAPIFactory.GetStockFeedFactory(FeedAPIProviders.Google);
            var          symbols    = googleFeed.GetSymbolsFromList(Lists.Penny);

            Assert.IsTrue(symbols.Length > 0);
        }
Beispiel #2
0
        /// <summary>
        /// FIRPy Main Starting Point
        /// </summary>
        /// <param name="args"></param>
        static void Main(string[] args)
        {
            mainProvider = FeedAPIFactory.GetStockFeedFactory(FeedAPIProviders.Google);

            if (args.Length > 0)
            {
                //Penny Stocks
                symbols = mainProvider.GetSymbolsFromList(Lists.Penny);

                try
                {
                    switch (args[0])
                    {
                    //Morning Volume
                    case ("-movo"):
                        MorningVolume();
                        break;

                    //Intraday
                    case ("-intra"):
                        Intraday();
                        break;

                    //Morning Twitter/RSS
                    case ("-motr"):
                        TwitterRSSFeeds();
                        break;
                    }

                    log.Info(string.Format("{0} Ran Successfully", args[0]));
                }
                catch (Exception e)
                {
                    log.Error(string.Format("Error while running {0}:", e.ToString()));
                }
            }
            else
            {
                //Intraday();
                //MorningVolume();
                TwitterRSSFeeds();
                log.Info("FIRPy Ran Successfully");
            }
        }