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.

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

EWrapper.openOrderEnd ()

Notifies the end of the open orders’ reception.

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