Receive Next Valid ID

View as MarkdownOpen in Claude

EWrapper.nextValidId (

orderId: int. Receives next valid order id.
)

Will be invoked automatically upon successful API client connection, or after call to EClient.reqIds.

1def nextValidId(self, orderId: int):
2 print("NextValidId:", orderId)