¿ªÔÆÌåÓý

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

Re: Tws Connection status monitoring


 

On Wed, Jun 14, 2023 at 06:12 PM, J¨¹rgen Reinold wrote:

Would Event objects provided bz the asyncio package work better here (IBKR suggests asyncio and ib_insync is built upon it) ?

Hard to say since I think it depends on the overall context and mostly on what the program is meant to accomplish. For example, is it meant to be long lived or just do some processing and exit? What are the real-time requirements?

I could also envision simply setting a member to None and changing it to the next valid id once it arrives... then checking that member in busy loop; assuming concurrency isn't of any interest at all. Are we trying to conserve electricity? Insure simplicity and readability?

Not sure there are simple answers in this respect.

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