Skip to content

RuntimeError: This event loop is already running #106

Answered by Fredrik-C
Fredrik-C asked this question in Q&A
Discussion options

You must be logged in to vote

Problem was here:

account = ib.accountSummary() ^^^^^^^^^^^^^^^^^^^ File "C:\git\Raytail.XGBoost\venv\Lib\site-packages\ib_async\ib.py", line 516, in accountSummary return self._run(self.accountSummaryAsync(account))

self._run seems to have caused the "This event loop is already running" problem. When I resorted to use await ib.accountSummaryAsync() instead then problem was gone.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Fredrik-C
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant