Actually, from beancount's perspective, selling the old fund and buying the
new one is what you want to do, I think.
The trick is that you need to specify the cost basis and the acquisition
date on the new fund so that there aren't any capital gains. The way you do
that is with the {...} syntax.
2021-09-16 "Merge to new fund"
Assets:Brokerage -100 OLD_FUND {11.00 USD, 2015-05-12}
Assets:Brokerage 200 NEW_FUND {5.50 USD, 2015-05-12}
Your broker should able to tell you what the cost basis in the fund is.
Give that a try and if you run into problems post here again about so
people can help you out.
Cheers,
Justus
On Wednesday, September 15, 2021 at 3:26:09 AM UTC+7 [email protected]
wrote:
> recently, one fund was merge into another fund.
> how to implement it in beancount knowing that i want to keep the price and
> the time when it was bought ???
>
>
> one easy solution is to sell the old fund and to buy the new one but it is
> not the thing i want.
>
> regards
>
--
You received this message because you are subscribed to the Google Groups
"Beancount" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/beancount/1d1b2d2e-2a74-44d6-901f-33bf1f1fb499n%40googlegroups.com.