I am requesting historical data using reqHistoricalData, with keepUpToData=True. I've tried adding the on_bar_update method as an event with the following two ways, which work great in a Notebook
Both trigger the on_bar_update only in a Notebook and everything works as designed. However, they fail to trigger and the program terminates in Eclipse IDE and the command line. All 3 environments are using the same exact code, with the same version of Python. I've experimented with the util.startLoop() and nest_asyncio.apply() to no avail.
Sorry if this is basic - I am noobie at IB and ib_insync
Thanks in advance for any feedback anyone can offer!
I am requesting historical data using reqHistoricalData, with keepUpToData=True. I've tried adding the on_bar_update method as an event with the following two ways, which work great in a Notebook
self.es_bars.updateEvent += self.on_bar_update self.ib.barUpdateEvent += self.on_bar_update
Both trigger the on_bar_update only in a Notebook and everything works as designed. However, they fail to trigger and the program terminates in Eclipse IDE and the command line. All 3 environments are using the same exact code, with the same version of Python. I've experimented with the util.startLoop() and nest_asyncio.apply() to no avail.
Sorry if this is basic - I am noobie at IB and ib_insync
Thanks in advance for any feedback anyone can offer!