public void AdvanceBuyLimitOrderIOC(string orderType, string instrument, string orderSize, string limitPrice) { string buyMarketOrderTime; UserSetFunctions.Click(BuyButton()); objAdvancedOrderPage = new AdvancedOrderPage(output); objUserFunctionality = new UserFunctions(output); objAdvancedOrderPage.SelectInstrumentsAndOrderType(instrument, orderType); objAdvancedOrderPage.PlaceBuyOrderWithImmediateOrCancelType(orderSize, limitPrice); buyMarketOrderTime = GenericUtils.GetCurrentTime(); VerifyAdvanceBuyOrderTab(instrument, "Buy", 2, limitPrice, buyMarketOrderTime); Thread.Sleep(2000); }
public void AdvanceSellLimitOrderIOC(string orderType, string instrument, string orderSize, string limitPrice) { string sellMarketOrderTime; UserSetFunctions.Click(SellButton()); objAdvancedOrderPage = new AdvancedOrderPage(output); objUserFunctionality = new UserFunctions(output); objAdvancedOrderPage.SelectInstrumentsAndOrderType(instrument, orderType); objAdvancedOrderPage.PlaceSellOrderWithImmediateOrCancelType(orderSize, limitPrice); sellMarketOrderTime = GenericUtils.GetCurrentTime(); Thread.Sleep(2000); UserCommonFunctions.CloseAdvancedOrderSection(driver, logger); Thread.Sleep(2000); UserSetFunctions.Click(OpenOrderTabButton()); VerifyAdvanceBuyOrderTab(instrument, "Sell", 2, limitPrice, sellMarketOrderTime); }