I wrote a simple routine to sort out how the minutely backtester handles orders at the end of the trading day. Here's the log output showing the last minute of 2012-01-03 and the first minute of 2012-01-04:
2012-01-03handle_data:5DEBUG2012-01-03 21:00:00+00:00
2012-01-03handle_data:6DEBUGndict({'amount': 19450, 'last_sale_price': 411.1, 'cost_basis': 410.99413111835446, 'sid': 24})
2012-01-04handle_data:5DEBUG2012-01-04 14:31:00+00:00
2012-01-04handle_data:6DEBUGndict({'amount': 19500, 'last_sale_price': 411.17, 'cost_basis': 410.9946589953141, 'sid': 24})
Is it correct that the order was submitted on 2012-01-03 and fulfilled on 2012-01-04? This seems correct, since 'amount' goes up from 19450 to 19500.
Is this the anticipated behavior?
Is it typical in live trading that submitted orders are carried over to the next trading day for fulfillment?