erdewit / ib_insync

Python sync/async framework for Interactive Brokers API
BSD 2-Clause "Simplified" License
2.8k stars 743 forks source link

qt gui slow #211

Closed andreivirtosu closed 4 years ago

andreivirtosu commented 4 years ago

Using qt gui with ib_sync IB.run() results in a very slow Gui. I've tried the qt example from here: https://github.com/erdewit/ib_insync/blob/master/examples/qt_ticker_table.py Clicking on the cells is slow and can take 1-2 sec or more for the event to be executed.

Using regular qt event loop (not the IB.run()) all works well as expected.

Environment: macos Catalina version 10.15

andreivirtosu commented 4 years ago

Btw, tested in ubuntu and this works fine, so I'm guessing it's a macos related problem.

erdewit commented 4 years ago

There's not much I can do about this. Perhaps try running with pyside2 instead of pyqt5.