コード例 #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();
 }
コード例 #2
0
ファイル: Program.cs プロジェクト: mukeshbpatel/StockCall
        static void Main(string[] args)
        {
            RealTimeStockPrice.MyProxy.VerifyProxy();

            System.Threading.Thread.Sleep(200000);

            RTStockPrice stockPrice = new RealTimeStockPrice.RTStockPrice();
            var          t          = stockPrice.GetStockCall();
        }
コード例 #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.");
            }
        }