Hi,

I was about to ask about how people model their brokerage account and
keep track of gains etc., because I currently do it as simple as

  2022-04-01 Buy Stocks
    Assets:Brokerage    50 ETF
    Assets:Savings    -100 EUR

  2022-05-01 Sell Stocks
    Assets:Brokerage    -10 ETF
    Assets:Savings    30 EUR

and then I end up with the problem that I cannot track the capital
gains well. With that model I can see well enough where assets are and
in which form, and also I can see how the overall value developed, but
I cannot easily see, say, how much gains I had in a particular year.

Then I found section 4.5.2 "Buying and Selling Stock"
  https://www.ledger-cli.org/3.0/doc/ledger3.html#index-buying-stock
in the ledger handbook which solves exactly that problem. However, I
don't understand the example.

  2004/05/01 Stock purchase
    Assets:Broker                     50 AAPL @ $30.00
    Expenses:Broker:Commissions        $19.95
    Assets:Broker                  $-1,519.95

  2005/08/01 Stock sale
    Assets:Broker                    -50 AAPL {$30.00} @ $50.00
    Expenses:Broker:Commissions        $19.95
    Income:Capital Gains           $-1,000.00
    Assets:Broker                   $2,480.05

Clearly the second transaction does not balance if I leave out the lot
price "{$30.00}". What exactly is happening here with the lot price so
that this transaction balances?

Thanks
Tobias



-- 

--- 
You received this message because you are subscribed to the Google Groups 
"Ledger" 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/ledger-cli/c784fedf34e0f97809a464c519ccba0960de65ba.camel%40web.de.

Attachment: signature.asc
Description: This is a digitally signed message part

Reply via email to