How would you need to refactor the code to allow a resting order to be modified?
Rules for modified orders:
- On price change order loses its priority
- On size change if new size is smaller, order maintains priority but if new size is larger order loses priority
How would you need to refactor the code to allow a resting order to be modified?
Rules for modified orders: