diff --git a/ib_async/order.py b/ib_async/order.py index d8d31cb..d36a512 100644 --- a/ib_async/order.py +++ b/ib_async/order.py @@ -228,6 +228,16 @@ def __init__( ) +class MarketOnCloseOrder(Order): + __slots__ = () + + def __init__(self, action: str, totalQuantity: float, **kwargs): + Order.__init__( + self, orderType="MOC", action=action, + totalQuantity=totalQuantity, **kwargs + ) + + @dataclass class OrderStatus: orderId: int = 0