Incorrect treatment of extended hours in paper trading

This bug has persisted for a while: day orders with extended flag set to True correctly expire in live trading at 6pm, but they incorrectly expire in paper trading at 4pm, and the orders submitted after 4pm endure till 4pm the next trading day. This discrepancy causes a bit of commotion when testing algo features on paper because this behavior does not happen in live trading.

1 Like

Thank you for the report. We will look into it.