开云体育

ctrl + shift + ? for shortcuts
© 2025 开云体育

Re: Trying to load data asynchronously and struggling with asyncio again


 

Hey Christian,?
?
Sorry, I since realized that your issue is with timeouts, not errors. Perhaps one of these settings will solve the problem:
?
ib.connect('127.0.0.1',7497, clientId=1, timeout=0) # 0 seconds=indefinite --- initial connect timeout – If establishing the connection takes longer than timeout seconds then the asyncio.TimeoutError exception is raised. Set to 0 to disable timeout.
?
ib.setTimeout(timeout=600) # --- Set a timeout for receiving messages from TWS/IBG, emitting timeoutEvent if there is no incoming data for too long.

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