Hi Martin, I finally had time to get back to this and I found this discussion you probably referred to:
https://groups.google.com/g/ledger-cli/c/zQHC7S80t90/m/3Ft8Tyr562sJThis seems to almost make sense to me but I couldn't get this to work as I expected. Not sure if the problem is in my ledger or my understanding of exercising options. Either way I hope you could help a bit:
For my case I have the following situation:
Options: 10
Strike price: 6.19
Cost basis 6.19/10 = 0.619
Market value at the time of exercise: 9.56 EUR
And I tried the following:
2018-01-01 open Income:Vincit:OptionsVesting
2018-01-01 open Income:Nordnet:Vincit:Gains EUR
2018-01-01 open Expenses:OptionsExercise EUR
2021-03-31 * "Acquire options"
Assets:Nordnet:VincitOptions 10 VINCIT_OPTIONS {0.619 EUR}
Income:Vincit:OptionsVesting
2021-05-10 * "Exercise options"
Assets:Nordnet:VincitOptions -10 VINCIT_OPTIONS {0.619 EUR} @ 9.56 EUR
Assets:Nordnet:Vincit 10 VINCIT { 9.56 EUR }
Income:Nordnet:Vincit:Gains -27.51 EUR
Expenses:OptionsExercise -61.90 EUR
Beancount accepts this but when I checkout my Fava balance sheet I see following:
Assets:Nordnet:Vincit 104 VINCIT (should be 104 + 10 = 114 VINCIT) and in EUR column
there is "95.60"
Assets:Nordnet:VincitOptions 0 (this seems ok since I exercised them)
I suppose this might be some conceptual misunderstanding I have but when I get more VINCIT stocks by either exercising or buying them, shouldn't they just be added up to the VINCIT account as units in my ledger and not as EURs?
Another thing I don't really get is the Gains part of the exercise transaction. I mean of course I gain value by exercising the option by lower value than its current market price, but shouldn't that just show up as a gain in the value of my stock position and not as direct income since I'm not selling the stocks immediately on exercise? Like shouldn't the exercise leas to 10 new lots of VINCIT with value of 6.19 EUR?