In the attached notebook, a position is entered and later closed. In the analyze function, the algorithm time at order placement is compared with the according transaction timestamp, which reveals a delta of one minute between algorithm timestamp and transaction timestamp for the same order.
What is the reason for that? When live trading a highly liquid equity, a delta of one minute between order placement and execution would be highly unlikely .