Esempio n. 1
0
 private void Button2_Click(object sender, EventArgs e)
 {
     AddLog("Test run started. Count(" + MyProxy.GoodProxyServer.Count.ToString() + ")");
     RTStockPrice stockPrice = new RealTimeStockPrice.RTStockPrice();
     var          t          = stockPrice.GetStockCall(false);
     //Master.SendFile();
 }
Esempio n. 2
0
        static void Main(string[] args)
        {
            RealTimeStockPrice.MyProxy.VerifyProxy();

            System.Threading.Thread.Sleep(200000);

            RTStockPrice stockPrice = new RealTimeStockPrice.RTStockPrice();
            var          t          = stockPrice.GetStockCall();
        }
Esempio n. 3
0
        private void TimerScript_Tick(object sender, EventArgs e)
        {
            DateTime dt = DateTime.Now;
            var      t  = dt.Hour + dt.Minute;

            if ((dt.Hour > 9 && dt.Hour < 15) || t == 54)
            {
                if (dt.Minute == 00 || dt.Minute == 15 || dt.Minute == 30 || dt.Minute == 45)
                {
                    AddLog("Script: 00,15,30,45 Count(" + MyProxy.GoodProxyServer.Count.ToString() + ")");
                    RTStockPrice stockPrice = new RealTimeStockPrice.RTStockPrice();
                    stockPrice.GetStockCall();
                }
            }
            else if (dt.Hour == 15 && dt.Minute == 0)
            {
                Master.SendFile();
                AddLog("Market Calls Summary sent.");
            }
        }