top | item 45125768

(no title)

faustlast | 5 months ago

I’ve been a long-time user of (h)ledger. I use a custom script to generate a cost basis when computing capital gains for selling transactions. Are there any recent updates or tools that improve cost-basis tracking or capital gains handling in hledger?

discuss

order

d10|5 months ago

When I had this need I put together https://src.d10.dev/lotter. It takes as input ledger-cli entries and puts out entries with lot info added, which you can then run through `ledger`. You can quickly scan its output and see if what it does makes sense to you.

The repo hasn't seen activity for a while, but AFAIK it still works. I just haven't needed it myself recently.

zeckalpha|5 months ago

I suspect you can do this with custom currencies and subaccounts