Closed ghost closed 2 years ago
Probably you have an older version of ib_insync - there's no position rounding in the current one.
I'm using 0.9.70 that pycharm finds when it searches for packages and python 3.9, says its the latest, do I need to clone the repo to get a newer version?
That's the latest version which is good. The position data must then be sent already rounded by IB. I think a recent gateway/TWS is needed as well.
Ok, I'll just try to take proper precautions into account in my program. Thanks.
Hello it seems that either the ib_insync api or ibkr tws api seems to round or omit (if rounding leads to 0) fractional shares. For some positions fractional shares that round to 0 can be worth thousands of dollars, is there a way to keep it from rounding?
Also if I have for instance, 57.68 shares, it rounds to 58.0 shares - which can end up leveraging a short if I were to sell what it tells me I have.