Hi,

I want to trade during and pre and post market hours (extended market hours). I set the following already:

 



    def Initialize(self):
            self.spy = self.AddEquity("AAPL", Resolution.Minute, extendedMarketHours=True) 


    def OnData(self, data):
                order_properties = InteractiveBrokersOrderProperties()()

                order_properties.OutsideRegularTradingHours = True

 

but the market orders I place during off-market hours are still becoming market on open orders. What is wrong?