Open 20robin06 opened 3 years ago
I guess it is becuase of the p2p clearing process here (file 'p2p_random.py', line:100):
while quantities.sum() > 0 and tmp_active.sum() > 0:
It means go into the loop when there are unmatched quantity or there are possible trade pairs exist (even though when buy price is lower than sell price). As a result, if the sell prices of remaining sellers are higher than the buy prices of remaining buyer, there will be a bug. I recommand to add a new condition statement into the loop to avoid the problem.
Description
When two bids are submitted that cannot be settled I receive an error:
i.e.:
What I Did
The command I ran:
The error message: