Martin,

Thanks.  In short (and in my words), I failed to associate assets 
properly.  When I added both dates and costs to assets, it worked.

I figured it might be useful to create a "canonical" (for my current 
purpose) file that covers what I think I want to do right now: track a set 
of related investments through ISO acquisition, splits, spin-offs, and 
sales.  I've attached the file, and it seems to work.  I thought I'd see if 
you or others had suggestions of ways to make it more idiomatic Beancount 
before I expanded it to my full situation, and I did have a couple of 
questions:


   - Do the options, commodities, and open sections look reasonable?  I 
   think they do.
      - It seems easy to think I should have a separate "basis" account for 
      each lot, but that's just the value of the asset (the stock).  
   - This example covers an employee stock purchase plan.  As such, some of 
   the cost of acquisition was borne by the company and some by me.  I needed 
   to initialize a cash account to pay for my shares, but I didn't want to 
   recreate my entire financial system as of the time, so I simply dumped an 
   arbitrary $10K into checking.  
      - Does this seem like an idiomatic way to do that?  Do you have a 
      better suggestion?
      - From the Language Syntax manual, I thought padding might work, but, 
      if so, I obviously don't understand the pad command (see the commented 
      lines in "Make cash available").  What am I doing wrong?
   - The remaining sections--Acquire initial shares, Transfer shares to 
   book-entry, Stock split, Stock sale, and Spin-off of AB--all seem to work, 
   so I presume they're okay, right?
   - That company also granted "free" "anniversary" shares.  I presume I 
   would treat them the same way, except that the cost of those shares would 
   all be paid out of income from the company, right?
   - For an ISO, there are two issues:
      - Tracking the ISO before it's exercised:  I don't have any open 
      ISOs, and so I can ignore that.
      - Tracking shares purchased through an ISO: that's just like the 
      "anniversary" shares, right?  The cost is all borne by the company.
   - Finally, in Trading with Beancount, you show a PnL account you've 
   created to track capital gains, and you associate it with the broker.  I 
   could see wanting to know (in the language of this example) PnL for AA and 
   AB separately, too.  That's easy to do with sub-accounts, but I might also 
   want to track PnL for AA and AB, even when some of those assets are held in 
   certificates and the rest at BrokerA.  Have you found a best practice for 
   doing that sort of thing?

Bill

-- 
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/d29804b8-04c3-4dc7-a8e2-25549db1ede0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Attachment: beaninvest.beancount
Description: Binary data

Reply via email to