I'm using minute-resolution data and have found cases where the algorithm places an order at 16:00 and it gets filled the next day at 09:31. But I'm placing the order like this:

  props = OrderProperties()
  props.TimeInForce = TimeInForce.Day
  order = self.MarketOrder(symbol, 100, orderProperties=props)

I thought this would ensure the order is not valid the next day. Am I misunderstanding how a Market “Day” Order works in QC? This seems inconsistent with how the brokers would work.