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

Unrealized gains calculation #495

Closed
vmartinv opened this issue Mar 7, 2024 · 1 comment
Closed

Unrealized gains calculation #495

vmartinv opened this issue Mar 7, 2024 · 1 comment
Labels
feature New feature or request

Comments

@vmartinv
Copy link
Collaborator

vmartinv commented Mar 7, 2024

I was thinking it would be useful to have an estimation of unrealized gains for the ongoing years, the way I was thinking of doing this is the following:

  • add a —show-unrealized-gains flag
  • If the flag is set, include it in the final portfolio (in the console output)
  • To calculate the unrealised gains for each symbol fetch the current price (we can use yahoo finance api) and compare it with the calculated pool price. unrealized gains= current price*quantity-pool price

Does that sound like something we want to have? I can add a PR for this.

@vmartinv vmartinv added the feature New feature or request label Mar 7, 2024
@KapJI
Copy link
Owner

KapJI commented Mar 7, 2024

Sounds nice!

Another useful feature could be keeping track of capital gain loss which can be claimed from previous years. If we need to process previous years anyway, it would be useful to display that as well.

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

No branches or pull requests

2 participants