Skip to content
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

Open
pronebird opened this issue Feb 11, 2024 · 4 comments
Open

Issues with splits or rather IB reports #121

pronebird opened this issue Feb 11, 2024 · 4 comments

Comments

@pronebird
Copy link
Contributor

pronebird commented Feb 11, 2024

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.

@pronebird pronebird changed the title Issues with splits Issues with splits or rather IB reports Feb 11, 2024
@RokLenarcic
Copy link

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.

@pronebird
Copy link
Contributor Author

@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.

@RokLenarcic
Copy link

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.

@pronebird
Copy link
Contributor Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants