Skip to content

Commit

Permalink
add Market On Close order
Browse files Browse the repository at this point in the history
  • Loading branch information
flepied committed Oct 22, 2024
1 parent 38cf54a commit bc319a4
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions ib_async/order.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit bc319a4

Please sign in to comment.