Closed fvalenti1 closed 5 years ago
I'm trying to create an IB object in a non main thread and it is throwing "RuntimeError: There is no current event loop in thread 'Thread-X'"
import threading from ib_insync import IB class Strategy (threading.Thread): def run(self): ib = IB() ib.connect('127.0.0.1', 7495, clientId=15) ...
See #33.
Problem fixed!! Thanks a lot for your very quick answer
I'm trying to create an IB object in a non main thread and it is throwing "RuntimeError: There is no current event loop in thread 'Thread-X'"