How to convert from Vanguard Investor shares to Vanguard Admiral shares

2021-12-14 Thread Hardy Jones
I've got an issue that I cannot figure out. I've tried searching here, on GitHub, and reading the docs. But, I'm a bit stuck on what to do. Vanguard has three different share classes . The important ones for this situation are: Investor

Re: How to convert from Vanguard Investor shares to Vanguard Admiral shares

2021-12-14 Thread James Cook
> It doesn't seem right to make up some fake account to dump the difference > into only so the transaction balances, but that's the best I can come up > with. Any other ideas about what to do, or maybe what I can do differently > to track this correctly? It seems to me the question to ask is: h

Re: How to convert from Vanguard Investor shares to Vanguard Admiral shares

2021-12-14 Thread Ben Blount
Sounds like the cost basis transfers over. If so, you can account for this by making the *total* basis of your new lots equal to the total basis of the original lots. The easiest way to do it is the total cost syntax using double curlys, but if the division ends up being irrational, you can get a

Re: How to convert from Vanguard Investor shares to Vanguard Admiral shares

2021-12-14 Thread redst...@gmail.com
Hi, Problem: you have a bunch of old investor lots, and you want to convert them into new admiral lots. The new lots must be scaled for quantity and price, but must retain the original dates for the cost bases. Essentially, you want your transaction to look like: 2021-01-01 * "Conversion" Ass

Re: bql subtract Amounts?

2021-12-14 Thread Ben L
Happy to take a stab at it if you want to point where it look. I can't find where in the beancount code to start. Since the error raised is TypeError, I searched that and for the "unsupported operand" error, but I can't find that in the code. Can you point me to where does the bql stuff for mat

Re: bql subtract Amounts?

2021-12-14 Thread redst...@gmail.com
I would start with this line : class EvalSub(EvalBinaryOp): def __init__(self, left, right): f = lambda x, y: Decimal(x - y) super().__init__(f, left, right, Deci

Re: bql subtract Amounts?

2021-12-14 Thread redst...@gmail.com
See this comment right above those lines from Martin. Would be great to do get both these working if you're up for it :) # Note: We ought to implement implicit type prom

Re: bql subtract Amounts?

2021-12-14 Thread Ben L
The changes I made were pretty minor and leveraged existing code for adding / subtracting Amounts. See https://github.com/beancount/beancount/pull/688 and let me know what you think, etc. On Tuesday, December 14, 2021 at 4:29:59 PM UTC-5 redst...@gmail.com wrote: > I would start with this l