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

Add basic support for cash merger transactions (Schwab only) #532

Merged
merged 3 commits into from
Jun 9, 2024

Conversation

vmartinv
Copy link
Collaborator

@vmartinv vmartinv commented Jun 9, 2024

This is a rudimentary implementation to handle cash merger transactions (i.e. when a company is acquired by another one). In these events the shares of the original company cease to exist and the investor can receive cash and shares from the new company in return.

In my case I only received cash, this case in simpler in that it is just like a normal sell event, which is what I implemented here.
When you also receive shares, the calculation is more complex and there's an election on how you want it to be taxed. I can't implement this as I don't have any past experience or data for it but more details are given in the HRMC guidance:
https://www.gov.uk/guidance/capital-gains-tax-share-reorganisation-takeover-or-merger#shares-and-cash

Implementation

  • In the Schwab csv export, this transaction uses two rows so I added an additional pass in the parser two merge them.
  • Includes asserts checking for the case implemented
  • Contains a further warning mentioning the lack of full support when this transaction is detected.
  • Adds a test case

@vmartinv vmartinv added the feature New feature or request label Jun 9, 2024
@KapJI
Copy link
Owner

KapJI commented Jun 9, 2024

Thanks for implementing this!

@KapJI KapJI merged commit a77066e into KapJI:main Jun 9, 2024
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants