Decrease the volume of the order.
(self, volume_to_decrease: int)
| 92 | return self.is_cancel and self.cancel_type == "S" |
| 93 | |
| 94 | def decrease_volume(self, volume_to_decrease: int) -> None: |
| 95 | """Decrease the volume of the order.""" |
| 96 | assert volume_to_decrease > 0 |
| 97 | self._volume -= volume_to_decrease |
| 98 | |
| 99 | def clone(self) -> "LimitOrder": |
| 100 | """Clone the order.""" |
no outgoing calls
no test coverage detected