Open Orders

View as MarkdownOpen in Claude

EWrapper.openOrder (

orderId: int. The order’s unique id

contract: Contract. The order’s Contract.

order: Order. The currently active Order.

orderState: OrderState. The order’s OrderState
)

Feeds in currently open orders.

1def openOrder(self, orderId: OrderId, contract: Contract, order: Order, orderState: OrderState):
2 print(orderId, contract, order, orderState)

EWrapper.openOrderEnd ()

Notifies the end of the open orders’ reception.

1def openOrderEnd(self):
2 print("OpenOrderEnd")