MCPcopy Index your code
hub / github.com/microsoft/MarS / decrease_volume

Method decrease_volume

mlib/core/limit_order.py:94–97  ·  view source on GitHub ↗

Decrease the volume of the order.

(self, volume_to_decrease: int)

Source from the content-addressed store, hash-verified

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."""

Calls

no outgoing calls

Tested by

no test coverage detected