Execution handling for orders placed at the same time
Closed this issue · 1 comments
masanorihirano commented
Lines 547 to 549 in 8090db6
In the simulations, we should consider the rare case that cannot occur in actual markets.
In this case, we faced the case that the orders are placed at the totally same time.
This occurs only when the max_normal_orders is more than 1 or one agent submits the buy and sell order at the same time and executed them, aka. wash sales (仮装売買 in japanese), which is strictly prohibitted.
masanorihirano commented
This issue is not happening because the orders are placed at not exactly the same time and the order id is different. The latter update fixed this issue.