I would like to change the code to allow place order outside RTH How to amend the following code? sID = ibc.PlaceOrder( ticker, "Buy", tradepos, "MKT", 0, 0, "Day", True, TradeTickSize, ""); Thanks!!! outsideRTH - if specified means that order will trigger not only during Regular Trading Hours (RTH), but also in extended trading (pre/after market); this applies to stop orders, conditional orders, and alerts; it is used by the triggering logic. If not specified (false) orders will trigger ONLY during RTH. allOrNone - fill all or nothing at all eTradeOnly - trade with electronic quotes only firmQuoteOnly - trade with firm quotes only Version 1.1 ignoreRth / rthOnly flags are OBSOLETE now and not supported as TWS API dropped support for those. By default all those flags are INACTIVE (OFF)