Closed bitblitz closed 1 year ago
update: after adding Pandas - the timeout vanished... any idea why?
Pandas is too large to be added to the dependencies, but I've added a comment to the code sample to (optionally) install it.
Btw, the timeout can occur when too much bars are requested.
On a clean python install, I did
pip install ib_insync
, which installed without error along with some additional packages.When I try to run the sample in the README.rst file, I encounter the following issues:
First, there seems to be timeout communicating with the TWSAPI client, though the client works otherwise, and if I change the duration to
1 D
instead of30 D
the timeout does not occur.output:
Second, once the timeout fires (or without a timeout with fewer bars), the code fails to run because there is no pandas package.
Recommend adding pandas as a required package to run samples.
Also, any suggestion about how to solve the timeout would be greatly appreciated.