Exemplo n.º 1
0
        public int historyDataDownload(IndexTickerInfo iti)
        {
            YahooMarketDataLoader ymdl = new YahooMarketDataLoader();

            DateTime sDate = new DateTime(2014, 1, 1);

            DateTime eDate = DateTime.Now;

            ymdl.indexYahooTickerList_.Add(iti);

            ymdl.loadHistoryData(sDate, eDate);
            ymdl.dbInsertHistory();

            return(0);
        }
Exemplo n.º 2
0
        private void TestButton_Click(object sender, RoutedEventArgs e)
        {
            string ticker = this.yahoo_tickerTB_.Text;

            if (ticker == "")
            {
                return;
            }

            bool tf = YahooMarketDataLoader.dataTest(ticker);

            if (tf)
            {
                this.yahoo_tickerTestTB_.Text = "OK";
            }
            else
            {
                this.yahoo_tickerTestTB_.Text = "FAIL";
            }
        }
        private void historyMarketDataBtn_Click(object sender, RoutedEventArgs e)
        {
            YahooMarketDataLoader loader = new YahooMarketDataLoader();

            loader.loadTickerList();
            loader.loadHistoryData(new DateTime(2011,1,1),new DateTime(2014,4,8));
            loader.dbInsertHistory();

        }
        private void marketDataBtn_Click(object sender, RoutedEventArgs e)
        {
            YahooMarketDataLoader loader = new YahooMarketDataLoader();

            loader.loadTickerList();
            loader.loadData();
            loader.dbInsert();

        }
        public int historyDataDownload(IndexTickerInfo iti)
        {
            YahooMarketDataLoader ymdl = new YahooMarketDataLoader();

            DateTime sDate = new DateTime(2014, 1, 1);

            DateTime eDate = DateTime.Now;

            ymdl.indexYahooTickerList_.Add(iti);

            ymdl.loadHistoryData(sDate, eDate);
            ymdl.dbInsertHistory();

            return 0;
        }