On Thu, Dec 15, 2016 at 1:30 PM, Alex Johnstone <[email protected]> wrote:
> Hello,
>
> I have purchased an index fund and for some reason that fund has close and
> converted to a different one. What's the best way to handle this conversion?
>
> Currently I have the following:
>
>
> 2014-10-30 * "Fund Purchase"
> Assets:Invest:FIAAGY 972.9149 FIAAGY {1.02 GBP}
> Assets:Invest:VVUILG 14.1509 VVUILG {140.98 GBP}
> Assets:Invest:VVUKEQ 13.0067 VVUKEQ {191.06 GBP}
> Assets:Invest:VVDVWE 22.1538 VVDVWE {202.90 GBP}
> Expenses:Invest:Fees 29.94 GBP
> Assets:Bank
>
> 2014-11-01 * "Fund Swap"
> Assets:Invest:VVUKEQ -13.0067 VVUKEQ {191.06 GBP}
> Assets:Invest:VVFUSI 16.6505 VVFUSI {149.25 GBP}
>
>
> However, this fails due to the fund swap transaction not balancing. I
> calculated the 149.25 myself to try and make it match. If I leave off the
> lot price it doesn't work as it says the transaction doesn't balance.
>
> Other than adding more decimal places to my calculated lot value is there
> are smarter way to do this?
>
Your residual is 2.7c, which is why Beancount finds it unacceptably large:
bean-doctor context best-way-to-handle-stock-exchanges.beancount 14
Hash:e7762575b71b638616255705e251b851
Location:
/home/blais/r/q/beancount-data/user/alexjohnstone/best-way-to-handle-stock-exchanges.beancount:12
------------ Balances before transaction
Assets:Invest:VVUKEQ 13.0067 VVUKEQ {191.06 GBP, 2014-10-30}
Assets:Invest:VVFUSI
------------ Transaction
2014-11-01 * "Fund Swap"
Assets:Invest:VVUKEQ -13.0067 VVUKEQ {191.06 GBP, 2014-10-30} ;
-2485.060102 GBP
Assets:Invest:VVFUSI 16.6505 VVFUSI {149.25 GBP, 2014-11-01} ;
2485.087125 GBP
Residual: (0.027023 GBP)
Tolerances: VVFUSI=0.00005, VVUKEQ=0.00005
Basis: (0.027023 GBP)
------------ Balances after transaction
Assets:Invest:VVUKEQ
* Assets:Invest:VVFUSI 16.6505 VVFUSI {149.25 GBP, 2014-11-01}
You can account for the rounding error explicitly:
2014-11-01 * "Fund Swap"
Assets:Invest:VVUKEQ -13.0067 VVUKEQ {191.06 GBP}
Assets:Invest:VVFUSI 16.6505 VVFUSI {149.25 GBP}
Equity:Rounding -0.027 GBP
--
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 post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/beancount/CAK21%2BhO_wrVFCofuz1kJZHCuEwzLhXH_ZpjN2Gne9PAPQBrHtg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.