¿ªÔÆÌåÓý

ctrl + shift + ? for shortcuts
© 2025 Groups.io

Re: error with reqExecutions


 

I have the following repro:
from ibapi.client import *
from ibapi.wrapper import *
?
port = 7500
#port = 9497
?
class TestApp(EClient, EWrapper):
?
? ? def __init__(self):
? ? ? ? EClient.__init__(self, self)
?
? ? def nextValidId(self, orderId: OrderId):
?
? ? ? ? exec_filter = ExecutionFilter()
? ? ? ? exec_filter.secType = 'Fut'
? ? ? ??
? ? ? ? self.reqExecutions(
? ? ? ? ? ? 12345,
? ? ? ? ? ? exec_filter
? ? ? ? )
?
? ? def execDetails(self, reqId: int, contract: Contract, execution: Execution):
? ? ? ? print(reqId, contract, execution)
?
? ? def execDetailsEnd(self, reqId: int):
? ? ? ? print("execDetailsEnd.", reqId)
? ? ? ? self.disconnect()
?
?
app = TestApp()
app.connect("127.0.0.1", port, 1007)
app.run()

This code works fine. If I replace the line:? exec_filter.secType = 'Fut' with exec_filter.secType = 'Bag' the code now hangs. So I think the issue seems to be Bag orders.

I have notified the IB guys also. I will keep you posted. I was wondering do you guys see similar issues with Bag orders

Join [email protected] to automatically receive all group messages.