A trade collision occurs when multiple takers attempt to take the same make order at the same time.
If there any way to help on solving this problem?
From what I see, it could be done either with lock on the table / records, either by keeping in memory a synchronized time-ordered list of operations "to be made".