-
-
Notifications
You must be signed in to change notification settings - Fork 60
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Issues with splits or rather IB reports #121
Comments
This is not a bug in IB. When a split happens, if the result is non-integer number of shares, one of two things can happen: if fractional shares are supported, you get xxx.3736 shares, else the fractional part is sold off and you receive money, which is what I expect you're seeing. |
@RokLenarcic thanks for explanation. That makes sense but then we have a bug because filing those is impossible given that there are no associated “buy”s in reports. I am not really sure what the right strategy here. |
There should be a buy pre-split. So let's say you buy 1000 shares, they do a reverse split 1 for 3, you receive 333 shares and they sell off 0.333333, that sell has a corresponding 1 share buy, part of those 1000 shares bought. So looking at presplit amounts, 999 shares you still have, 1 you've sold. |
OK I guess we just don't handle that properly or maybe we don't handle fractions all that well. |
Beware it seems that IB has some gnarly bugs in their reports. On split they put a transaction saying that I have sold -0.3763 shares of XXX. Then ib-edavki prints this into reports with no corresponding buys. Good thing e-davki warn you before you prep the report.. Feels like something we could catch on our side and print big red letters into console because we can't have missing transactions in tax reports anyway.
The text was updated successfully, but these errors were encountered: